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#

NameTypeDescription
titleReactNode

Summary label shown in the header.

iconReactNode | string

Lucide icon name or element shown before the title.

defaultOpenboolean

Whether the accordion starts expanded.

Default: false
childrenReactNode

Content revealed when open.

AccordionGroup#

NameTypeDescription
defaultOpenboolean

When true, opens the first child that does not set its own defaultOpen.

Default: false
childrenReactNode

One or more Accordion items. Empty groups render nothing.

Last updated on