- Components
- Data display
Accordion
Panels animate their height through Base UI's --accordion-panel-height over 200ms ease-out-soft; the chevron turns 180 degrees over 250ms.
Installation#
npx shadcn add @ortaui/accordionExamples#
Single#
Yes. It follows the WAI-ARIA accordion pattern on Base UI.
Multiple#
Stays open while others open.
Also open.
API reference#
| Prop | Type | Default | Description |
|---|---|---|---|
| value / defaultValue | string[] | - | On Accordion. Open item values. |
| multiple | boolean | false | On Accordion. Allow several open items. |
| value | string | - | On AccordionItem. |