FAQ accordion
A help-center FAQ with one-at-a-time answers, a collapsible section for extra questions, and a contact card.
bunx --bun @getweini/cli@latest add accordion button card collapsible empty-state skeletonCustomize
- Pass `questions` as `{ id, question, answer }`. The first `visibleCount` stay on the page and the rest move behind a Collapsible, so a long list does not push the page down.
- Each group is an Accordion with `collapsible`, so one answer is open at a time and it can be closed again. Arrow keys, Home and End move between questions; every question is a real heading with a button inside.
- The "show more" control is a Button composed through `CollapsibleTrigger as-child`, so it keeps the button look and gets `aria-expanded` for free. Collapsed content is inert, so hidden answers are not reachable by keyboard.
- The accordion questions use `heading-level` 2 under the page `h1`. Change it if the block sits inside a larger page.
- The contact card emits `contact`. Set `loading` for placeholder rows. All text is in `copy`; the "show more" label is a function so the count can be translated.