Display
Accordion
Smoothly expanding sections for organizing large amounts of content.
FAQ & Support
A complete real-world simulation of a help center. Includes custom icons, controlled state, and toggleable multiple expansion.
Allow Multiple Expansion:
Active Section IDs: item-1
Expansion Variants
Supports default, ghost, and bordered styles to fit any UI density.
Properties
| Prop | Type | Default | Description |
|---|---|---|---|
items | AccordionItemProps[] | — | Array of item configurations with label, icon, actions, and active states |
allowMultiple | boolean | false | If true, permits multiple accordion sections to be expanded concurrently |
variant | 'default' | 'ghost' | 'bordered' | 'default' | Semantic design theme variant |
expandIcon | React.ReactNode | — | Global icon override for all items |
value | string[] | — | Controlled open item IDs |
onChange | (ids: string[]) => void | — | Callback when open items change |
id | string | — | Unique HTML element identifier |
title | React.ReactNode | — | Structural modal header title |
children | React.ReactNode | — | Main descriptive text or overlay children layout |
defaultOpen | boolean | — | Initial expanded state for uncontrolled mode |
disabled | boolean | — | If true, disables all user interaction and applies faded opacity |
icon | React.ReactNode | — | Custom icon shown on the left |