Components
Accordion
Expandable FAQ-style sections, alone or in a group.
Use Accordion for a single expandable block, or wrap several in
AccordionGroup.
Single accordion#
Accordion groups#
Group related items with AccordionGroup. Set defaultOpen to expand the
first item (unless a child sets its own defaultOpen).
A docs site generator powered by Vite, React, and MDX.
For a single collapsible without group styling, use Expandable.
Properties#
Accordion#
| Name | Type | Description |
|---|---|---|
| title | ReactNode | Summary label shown in the header. |
| icon | ReactNode | string | Lucide icon name or element shown before the title. |
| defaultOpen | boolean | Whether the accordion starts expanded. Default: false |
| children | ReactNode | Content revealed when open. |
AccordionGroup#
| Name | Type | Description |
|---|---|---|
| defaultOpen | boolean | When |
| children | ReactNode | One or more |
Last updated on