Skip to content

Accordion

A vertical list of collapsible sections, each a trigger with a title and a panel that opens independently of the others.

Maturity
beta
Links
Storybook · Figma: AccordionItem · Figma: course-module-list example · Spec source · Usage source

Anatomy

How anthropologists study human behaviour and culture: ethnographic methods, field research and cultural analysis.

Patterncourse-module-list

How anthropologists study human behaviour and culture: ethnographic methods, field research and cultural analysis.

DetailTrigger

States

App dataclosed

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc elementum nulla eu justo iaculis, a condimentum sapien lobortis. Duis tincidunt, libero sit amet eleifend consectetur.

App dataopen

Props

PropTypeDefaultOptions
childrenReactNode——
classNamestring——

Composition props

Props of Accordion.Root and its parts, for building the component from parts instead of the preset (ADR-023).

Show 8 props on 1 parts
PartPropDefaultOptions
Accordion.Itemtitle——
subtitle——
defaultOpenfalse—
open——
onOpenChange——
headingLevel3—
children——
className——

Tokens

StateTokens
Default100%01pxcolor.border.default
token.name
Token this component sets
token.name
Token from the component the part is built on; hover it for which
value
Raw value with no token; hover it for the reason

Every component follows ADR-025, ADR-026 and ADR-028(states, prop vocabulary, focus indicator); they are not repeated per component.