Accordion
A vertical list of collapsible sections, each a trigger with a title and a panel that opens independently of the others.
Anatomy
How anthropologists study human behaviour and culture: ethnographic methods, field research and cultural analysis.
States
closedLorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc elementum nulla eu justo iaculis, a condimentum sapien lobortis. Duis tincidunt, libero sit amet eleifend consectetur.
openProps
| Prop | Type | Default | Options |
|---|---|---|---|
children | ReactNode | — | — |
className | string | — | — |
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
| Part | Prop | Default | Options |
|---|---|---|---|
Accordion.Item | title | — | — |
subtitle | — | — | |
defaultOpen | false | — | |
open | — | — | |
onOpenChange | — | — | |
headingLevel | 3 | — | |
children | — | — | |
className | — | — |
Tokens
| State | Tokens |
|---|---|
| Default | |
| Default | |
| Default | |
| hover | |
| active | |
| Default | |
| open | |
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.