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)
| Prop | Type | Default | Description |
|---|---|---|---|
| type | single | multiple | — | Required. `single` keeps at most one section open; `multiple` allows several at once. |
| value | string | string[] | — | Controlled: the open item value, or (for multiple) open item values. |
| defaultValue | string | string[] | — | Uncontrolled: which item(s) are open on first render. |
| onValueChange | function | — | Callback when the open value(s) change. Payload shape follows `type` (string vs. string[]). |
| collapsible | boolean | false | For `type="single"` only: whether the active item can be fully collapsed (none open). |
| disabled | boolean | false | When 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)