Default
Lorem ipsum dolor, sit amet consectetur adipisicing elit. Sit esse nisi eligendi fuga! Quas nisi repellat adipisci animi repellendus incidunt laborum sunt qui nesciunt, ducimus saepe sapiente sed ut labore. Lorem ipsum dolor, sit amet consectetur adipisicing elit. Sit esse nisi eligendi fuga! Quas nisi repellat adipisci animi repellendus incidunt laborum sunt qui nesciunt, ducimus saepe sapiente sed ut labore.
Collapsible
Lorem ipsum dolor, sit amet consectetur adipisicing elit. Sit esse nisi eligendi fuga! Quas nisi repellat adipisci animi repellendus incidunt laborum sunt qui nesciunt, ducimus saepe sapiente sed ut labore. Lorem ipsum dolor, sit amet consectetur adipisicing elit. Sit esse nisi eligendi fuga! Quas nisi repellat adipisci animi repellendus incidunt laborum sunt qui nesciunt, ducimus saepe sapiente sed ut labore.
Multiple
Lorem ipsum dolor, sit amet consectetur adipisicing elit. Sit esse nisi eligendi fuga! Quas nisi repellat adipisci animi repellendus incidunt laborum sunt qui nesciunt, ducimus saepe sapiente sed ut labore. Lorem ipsum dolor, sit amet consectetur adipisicing elit. Sit esse nisi eligendi fuga! Quas nisi repellat adipisci animi repellendus incidunt laborum sunt qui nesciunt, ducimus saepe sapiente sed ut labore.
Open State
Each Item id
added to the Accordion value
array will be open by default.
useState Hook
Harcoded
Multiple Items
Use multiple
to enable multiple items to be opened at once.
Custom Icons
API Reference
Accordion
Property | Type | Description |
---|---|---|
animDuration | number | |
iconOpen | React.ReactNode | |
iconClosed | React.ReactNode | |
onValueChange | object | |
base | string | |
padding | string | |
spaceY | string | |
rounded | string | |
width | string | |
classes | string | |
children | React.ReactNode | |
value | array | |
dir | string | |
getRootNode | object | |
disabled | boolean | |
multiple | boolean | |
ids | Partial<...> | |
collapsible | boolean | |
onFocusChange | object | |
AccordionItem
Property | Type | Description |
---|---|---|
base | string | |
spaceY | string | |
classes | string | |
children | React.ReactNode | |
value * | string | |
disabled | boolean | |
AccordionControl
Property | Type | Description |
---|---|---|
headingElement | string | |
disabled | boolean | |
base | string | |
hover | string | |
padding | string | |
rounded | string | |
classes | string | |
leadBase | string | |
leadClasses | string | |
contentBase | string | |
contentClasses | string | |
indicatorBase | string | |
indicatorClasses | string | |
lead | React.ReactNode | |
children | React.ReactNode | |
AccordionPanel
Property | Type | Description |
---|---|---|
base | string | |
padding | string | |
rounded | string | |
classes | string | |
children | React.ReactNode | |