Search documentation

Find a component or a docs page

Accordion

A vertically stacked set of interactive headings that each reveal a section of content.

Usage

Example

Built on native <details> and <summary>: no JavaScript. One item opens at a time.

Multiple

Pass multiple: true to let several items stay open.

Disabled

A disabled item can't be clicked and leaves the tab order. Pass disabled: true to the Accordion to disable every item. Without JavaScript, a screen reader can still open it.

Heading level

Each trigger is a heading (h3 by default). Pick the level that fits the page outline.

Installation

Components

ComponentBuilt usingSource
AccordionPhlex
AccordionContentPhlex
AccordionDocsPhlex
AccordionIconPhlex
AccordionItemPhlex
AccordionTriggerPhlex