On this page

Accordion

When to use Accordion, when to use something else, and tokens.

Draft. Ported from the shadcn-vue Accordion and restyled with Beehexa tokens. Not yet approved; the API may still change.

Stacked headings that each open a section of content.

When to use

  • Long content people scan by heading, such as FAQs or optional settings.

When not to use

  • Content everyone needs. Show it.
  • One block to show or hide. Use a Collapsible.
  • Switching between views. Use Tabs.

Tokens

Part Tokens
Heading font.label.default, color.text, space.150 above and below
Chevron size.icon.default, color.icon.subtle
Divider color.border
Focus the Button focus ring (border.width.focused, color.border.focus, state.focus.offset)