DSNiemeyer
Language

Accordion

Vertically stacked collapsible sections.

Basic

Morada.ai’s design system — tokens, components, and templates for consistent UIs.

With border

Name, address, type, number of units, and basic information.

Props (Accordion root)

PropTypeDefaultDescription
typesingle | multipleRequired. `single` keeps at most one section open; `multiple` allows several at once.
valuestring | string[]Controlled: the open item value, or (for multiple) open item values.
defaultValuestring | string[]Uncontrolled: which item(s) are open on first render.
onValueChangefunctionCallback when the open value(s) change. Payload shape follows `type` (string vs. string[]).
collapsiblebooleanfalseFor `type="single"` only: whether the active item can be fully collapsed (none open).
disabledbooleanfalseWhen true, disables the entire accordion.

On AccordionItem: `value` is required and must be unique per section; set `disabled` to disable a single item.

Full API, examples, and Radix details: shadcn/ui — Accordion (Radix)