FAQ, accordion
betaA title beside three to twelve questions that open one by one, and a contact link; closed answers stay findable.
npx rasengan-ui add faq-accordion
Yes. Every invoice has a payment link: your client opens it, picks a card, a bank transfer or mobile money, and pays.
You can invoice in 135 currencies. Payments settle in your account's currency at the rate shown on the invoice.
Import clients and past invoices from a CSV file or directly from the main accounting tools; numbering carries on where you stopped.
You choose a plan or stay on Solo, which is free. Nothing is deleted, and invoices already sent keep their payment links.
Data is encrypted in transit and at rest, backed up daily, and stored in the region you choose when you sign up.
- Use it
- Answering objections near the pricing or the end of a page.
- Avoid it
- Long documentation answers: link to the docs instead.
- Pairs with
- Call to action, bannerFooter, columns
Installation
It installs into components/blocks/faq-accordion/, with what it uses (Accordion, Button) and lib/blocks.ts.
Usage
Without content, the block shows its example. Pass your own, typed by the block's schema, from a content file (here, the example with one field changed):
Closed answers are rendered with hidden="until-found": search engines read them, and the browser's find-in-page opens the one that matches.
Content
| Field | Type | Limits | Guidance |
|---|---|---|---|
title | string | 6–70 chars | Usually 'Questions, answered' or 'Frequently asked questions'. |
sublineoptional | string | ≤ 180 chars | |
items | object[] | 3–12 items | The questions people actually ask before buying, in their words. |
items[].question | string | 6–120 chars | |
items[].answer | string | 6–400 chars | |
contactoptional | object | A way out for a question not on the list. | |
contact.text | string | 6–80 chars | 'Still have a question?' |
contact.cta | object | ||
contact.cta.label | string | 1–32 chars | A verb first, two to four words: 'Start free', 'Book a table'. |
contact.cta.href | string | A path ('/pricing'), an anchor ('#menu'), or a full URL. |
Props
| Prop | Notes |
|---|---|
content | FaqAccordionContent; the example when left out |
id | the section's id, for anchor links; "faq" by default |
headingLevel | 1, 2 or 3: the heading's tag; 2 by default |
className | on the root element, for spacing |
Accessibility
- Each question is a button that opens its answer, with Base UI's keyboard support and ARIA.
- The title and the contact link come before the questions in reading order.