Elements

Components

Accordion

Accordion, dressed in the paper-and-ink system: a ruled sheet folded by quiet rows, unfolding with a spring-chevoned dissolve. The parts — Root, Item, ItemTrigger, ItemContent, ItemIndicator.

#Basic usage

accordion/basic Vue React

Interfaces are warm paper, content is ink, hierarchy is light — never pure white, never a hard pop.

#Props

#ItemContent

A styled part — no props of its own; it takes the anatomy's shared styling.

#ItemContext

A styled part — no props of its own; it takes the anatomy's shared styling.

#ItemIndicator

A styled part — no props of its own; it takes the anatomy's shared styling.

#ItemTrigger

A styled part — no props of its own; it takes the anatomy's shared styling.

#Item

PropTypeDefaultDescription
disabledboolean | undefinedWhether the accordion item is disabled.
valuestringThe value of the accordion item.

#Root

PropTypeDefaultDescription
collapsiblebooleanfalseWhether an accordion item can be closed after it has been expanded.
defaultValuestring[]The initial value of the expanded accordion items. Use when you don't need to control the value of the accordion.
disabledbooleanWhether the accordion items are disabled
idstringThe unique identifier of the machine.
idsPartial<{ root: string; item(value: string): string; itemContent(value: string): string; itemTrigger(value: string): string; }>The ids of the elements in the accordion. Useful for composition.
modelValuestring[]The v-model value of the accordion
multiplebooleanfalseWhether multiple accordion items can be expanded at the same time.
orientation'horizontal' | 'vertical'"vertical"The orientation of the accordion items.