2.11.2
Accordion Component in Bolt
The Accordion component is a vertical list of items, each of which can be expanded or collapsed to show more content.
npm install @bolt/components-accordion
Note: when assigning component props as HTML attributes on a web component, make sure to use kebab-case
.
Prop Name | Description | Type | Default Value | Option(s) |
---|---|---|---|---|
|
All of the items in the accordion. Each item should contain a header and a content. |
array
|
— |
|
|
Allow only one section to open at a time. |
boolean
|
false
|
|
|
Hides the separator in between items. |
boolean
|
false
|
|
|
Creates a box shadow around the accordion. |
boolean
|
false
|
|
|
Controls the inset spacing of each item. |
string
|
medium
|
|
|
Vertically align the accordion trigger content and trigger icon. |
string
|
center
|
|