FAQ Accordion

faq_accordion renders a bordered FAQ section with small Alpine.js state for expanding answers.

When to Use

Use it for objections, pricing questions, implementation details, or any set of questions that would otherwise take too much vertical space.

Usage

{{ faq_accordion(
title="Questions",
q_1="Do I need a frontend build step?",
a_1="No. VaraPress ships bundled assets for consuming sites."
) }}

Live Example

Common questions

No. VaraPress ships bundled assets for consuming sites.
Yes. Use them when they make the explanation clearer.

Parameters

ParameterDescription
containerInner content width for the FAQ section.
eyebrowSmall uppercase label above the heading.
titleSection heading.
descriptionSupporting copy below the heading.
q_NQuestion text for item N. Supports q_1 through q_10.
a_NAnswer text for item N. Supports a_1 through a_10.
bgFull-width section background token.
classAdditional CSS classes on the outer section.