Accordion
Live example
Accordion
Installation
npx shadcn@latest add https://hextech-ui.vercel.app/r/accordion.jsonAPI reference
These are the main Accordion options. See the exported TypeScript types for inherited native or primitive props.
| Prop | Type | Default |
|---|---|---|
value / defaultValue | string[] | — |
multiple | boolean | false |
value | string (item) | — |
Expanded items
Use value and onValueChange to own expanded values, or defaultValue. Set multiple when several panels can remain open. Put meaningful text in each trigger and keep nested controls out of the trigger button.