Accordion
Compare single and multiple accordions, collapsible behavior, and how disabled items appear.
On this page
Usage
We offer standard (5-7 days), express (2-3 days), and overnight shipping. Free shipping on international orders.
Examples
Single · Collapsible
We offer standard (5-7 days), express (2-3 days), and overnight shipping. Free shipping on international orders.
Single · Flush
We offer standard (5-7 days), express (2-3 days), and overnight shipping. Free shipping on international orders.
Multiple · Expanded
We offer standard (5-7 days), express (2-3 days), and overnight shipping. Free shipping on international orders.
Returns accepted within 30 days. Items must be unused and in original packaging. Refunds processed within 5-7 business days.
Single · Disabled Item
We offer standard (5-7 days), express (2-3 days), and overnight shipping. Free shipping on international orders.
Installation
Set up your license key before connecting the private registry.
Connect this project to https://docs.interfacesds.com using the full URL shown below, including {name}. In components.json, add the registries field at the top level. If the field already exists, add only the @interfaces-ds entry inside it. Keep your existing aliases and other registries.
For a global stylesheet in app/ or src/app/.
JSON{ "registries": { "@interfaces-ds": { "url": "https://docs.interfacesds.com/r/{name}.json", "headers": { "Authorization": "Bearer ${INTERFACES_DS_LICENSE_KEY}" } } } }Install the component.
Terminalnpx shadcn@latest add @interfaces-ds/accordion
API reference
Import these exports from @/components/ui/accordion. The tables cover component-specific props and common controls.
Accordion
| Prop | Type | Default |
|---|---|---|
asChild | boolean | — |
collapsible | boolean | — |
defaultValue | string | string[] | — |
disabled | boolean | — |
multiple | boolean | — |
type | "multiple" | "single" | — |
value | string | string[] | — |
AccordionItem
| Prop | Type | Default |
|---|---|---|
asChild | boolean | — |
disabled | boolean | — |
onOpenChange | (open: boolean, eventDetails: AccordionPrimitive.Item.ChangeEventDetails) => void | — |
AccordionTrigger
| Prop | Type | Default |
|---|---|---|
asChild | boolean | — |
disabled | boolean | — |
name | string | — |
type | "button" | "submit" | "reset" | — |
value | string | number | readonly string[] | — |
AccordionContent
| Prop | Type | Default |
|---|---|---|
asChild | boolean | — |