Installation
Usage
Components
Collapsible (Root)
boolean
Controlled open state.
boolean
Default open state.
function
Callback when state changes.
boolean
Disable the collapsible.
CollapsibleTrigger
string
Additional CSS classes.
CollapsiblePanel
boolean
default:"false"
Keep panel mounted when closed.
Use hidden=until-found attribute.
Examples
Basic Collapsible
Controlled
Default Open
Accessibility
- Built on @base-ui/react for accessibility
- Keyboard accessible (Enter/Space to toggle)
- Proper ARIA attributes
- Smooth height transitions
- Focus management