Documentation Index
Fetch the complete documentation index at: https://docs.sure-developer.com/llms.txt
Use this file to discover all available pages before exploring further.
Accordion
Accordion renders expandable sections from an item array.
API
Item shape
| Field | Type | Description |
|---|---|---|
value or id | string | Stable item id. Defaults to item-N. |
title or label | string | Trigger text. Defaults to value. |
content or description | string | Expanded body text. |
disabled | boolean | Disables the trigger when true. |
Props
| Prop | Type | Description |
|---|---|---|
type | 'single' | 'multiple' | Multiple mode keeps more than one item open. |
collapsible | boolean | Defaults to true. Set false to keep the active item open. |
defaultValue | string | Initial open item. Defaults to the first item value. |
openIcon, openIconComponent, activeIcon, activeIconComponent | icon | Open icon. |
closedIcon, closedIconComponent, icon, iconComponent | icon | Closed icon. |
itemClassName | string | Item wrapper class. |
triggerClassName, activeTriggerClassName, openTriggerClassName | string | Trigger classes. |
titleClassName | string | Title span class. |
contentClassName | string | Expanded content class. |
