Collapsible

An expandable region with a trigger. Use Accordion for a group of them.

components/ui/collapsible.tsx

Installation

npx betterone-ds add collapsible

Props

ComponentPropTypeDefault
CollapsibledefaultExpandedbooleanfalse
Collapsible

Accessibility

  • The trigger exposes aria-expanded to assistive technology.
  • Space and Enter toggle the region.