Accordion

A stack of sections that expand and collapse.

components/ui/accordion.tsx

Installation

npx betterone-ds add accordion

Props

PropTypeDefault
allowsMultipleExpandedbooleanfalse

Accessibility

  • Triggers expose aria-expanded. Enter and Space toggle a section.