Default Accordion
A simple disclosure list for compact content.
tsx
<Accordion items={items} />Component
An animated disclosure component for FAQs, settings groups, and collapsible content sections.
Live previews paired with copyable source.
A simple disclosure list for compact content.
<Accordion items={items} />Use card styling when accordion items need stronger separation.
<Accordion items={items} variant="card" />Let readers compare sections without closing the previous one.
<Accordion items={items} variant="rounded" allowMultiple />Props available on the component.
| Prop | Type | Default | Description |
|---|---|---|---|
| items | AccordionItem[] | required | Content entries with title and content fields. |
| variant | 'default' | 'bordered' | 'rounded' | 'minimal' | 'card' | 'default' | Changes the container treatment for each item. |
| allowMultiple | boolean | false | Allows more than one item to remain open. |