Accordion
Markdown for agentsCollapsible content sections with ARIA accordion semantics.
npx slipstream-ui@latest add accordionUsage
An AI-first component system with machine-readable manifests.
Run npx slipstream-ui init in your project.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| value | string[] | — | Controlled open item ids. |
| collapsible | boolean | true | When true, opening an item closes the others. |
| onValueChange | (value: string[]) => void | — | Called when the open set changes. |
Accessibility
- Trigger has aria-expanded and aria-controls; panel has role=region.
- Hidden panels are removed from the tab order.