Layout
Accordion
Reveals related content with clear heading hierarchy and optional separating panels.
Usage
Anatomy
The parts and how they nest, taken from the preview above.
Examples
Controlled multiple expansion
Keep value and onValueChange together. The application can expand every section.
Workspace preferences
Review how your workspace is organized and where updates are delivered.
Controlled multiple
Coordinates multiple expanded panels through external state and actions.
Disabled item
Suppresses user interaction on restricted or unavailable sections.
Long wrapping content
Preserves layout structure and text wrapping across responsive viewports.
Icons and descriptions
Use consumer-provided icons and quieter descriptions to distinguish related sections.
Recommendations
| Guidance | Practice |
|---|---|
| Do | Use short section titles that explain the hidden content. Choose multiple expansion when users compare sections. |
Usage boundaries
| Guidance | Boundary |
|---|---|
| Scope | Keep required instructions visible. Use Tabs when each section represents a separate view. |
API reference
Public props from @mizen-labs/ui. Use exported prop types for the complete TypeScript contract.
| Prop | Type | Default | Description |
|---|---|---|---|
| | — | Controlled value of expanded items. Expects an array of item values. |
| | — | Initial expanded item values for uncontrolled accordion. |
| | — | Callback invoked when expanded accordion items change. |
| | false | Allows multiple accordion items to be expanded simultaneously. |
| | false | Prevents user interaction across all items in the accordion. |
| | — | Accordion items and content composed within the accordion. |
| | "div" | Root accordion container managing expanded item state with a default div host. |
| | "div" | Item container coordinating a single disclosure section with a value key. |
| | "button" | Interactive header trigger button with animated chevron and managed aria-expanded. |
| | "div" | Animated panel container for accordion item content. |
| | — | Low-level Base UI primitive escape hatch for custom composition. |
| | "default" | Compact divided rows or grouped surfaces whose expanded items separate with animated spacing. |
| | — | Consumer-provided decorative icon; Mizen owns the aligned icon surface. |
| | — | Quieter helper text linked to the trigger through aria-describedby. |