Accordion
Vertically stacked set of interactive headings that reveal or hide associated content sections
The accordion stacks collapsible sections, each with a header that toggles its content. Use it for FAQs, settings groups, or any list where showing one section at a time keeps the page short.
Preview
Installation
Usage
Composition
AccordionTrigger renders its own AccordionHeader internally, so you compose only these four parts.
Examples
Multiple Open Items
Set multiple on Accordion to keep more than one item open at once.
Default Expanded
Pass defaultValue on Accordion to expand items on first render.
Disabled Items
Set disabled on an AccordionItem to prevent it from toggling.
Chevron Indicator
Set indicatorType="chevron" on AccordionTrigger to use a chevron instead of the plus.
Indicator at Start
Set indicatorPosition="start" on AccordionTrigger to move the indicator before the label.
Without Indicator
Set showIndicator={false} on AccordionTrigger to hide the indicator.
With Icon
Use the icon prop on AccordionTrigger to render a custom icon before the label.
With Subtitle
Use the subtitle prop on AccordionTrigger to render secondary text below the label.
Variants
Use variant on Accordion to change how items are framed and separated.
| Variant | Description |
|---|---|
default | Borderless items divided by a bottom rule. |
split | Each item is its own bordered card. |
outline | Items grouped inside one bordered card. |
nested | Indented items inside a muted, rounded container. |
isolated-bordered | Bordered items that detach and round when opened. |
isolated-filled | Filled items that detach and round when opened. |
isolated-filled-bordered | Filled items with dividers that detach and round when opened. |
API Reference
The Accordion component is built on top of Base UI's Accordion. All Base UI props are supported. The documentation below only covers custom props and modified defaults specific to our implementation.
For the complete Base UI API, see the Base UI Accordion documentation.
Props
Accordion
Collapsible container that groups expandable content sections. Wraps Base UI's Accordion.Root.
AccordionTrigger
Clickable header that toggles content visibility. Wraps Base UI's Accordion.Trigger.