Collapsible
An expandable region with a trigger. Use Accordion for a group of them.
components/ui/collapsible.tsx
Preview
Code
Installation
npx betterone-ds add collapsibleProps
| Component | Prop | Type | Default |
|---|---|---|---|
| Collapsible | defaultExpanded | boolean | false |
| Collapsible |
Accessibility
- The trigger exposes aria-expanded to assistive technology.
- Space and Enter toggle the region.

