Accordion
An accordion is a component that displays a collapsible content that can be expanded or collapsed.
Loading Code Block...
Loading Code Block...
Loading Code Block...
Props | Default | Type | Description |
---|---|---|---|
accordionItems | [] | array | An array of accordion items to display. |
type | default | 'default' | 'website' | The type of accordion to display. |
openBehavior | collapse | 'collapse' | 'always-open' | Controls how multiple accordion items can be open at once. |
itemClassName | - | string | The CSS class for individual accordion items. |
headerClassName | - | string | The CSS class for the accordion header. |
buttonClassName | string | The CSS class for the accordion buttons. | |
slotClassName | string | The CSS class for the accordion content. |