Accordion
Connected, animated panels with shared borders and single or multiple expansion.
Attributes
| Name | Type | Default | Description |
|---|---|---|---|
multiple | boolean | false | Allows several panels to remain expanded. All panels may be closed in either mode. |
CSS custom properties
Grouped by the element and state they target. Click a group to collapse it; click a name to copy it.
| Name | Type | Default | Description |
|---|---|---|---|
--c2-accordion--gap | pixel | 0px | Space between panels. Zero joins their borders and corners; a positive gap separates them into cards. |
--c2-accordion--border-width | pixel | 1px | Width of the outer frame and shared panel dividers. |
--c2-accordion--border-color | color | #d5d5d5 | Color of the outer frame and shared panel dividers. |
--c2-accordion--border-radius | border-radius | 8px | Outside corner radius. With a positive gap, applies to every panel. |
--c2-accordion--transition-duration | time | 300ms | Panel and chevron animation duration. Set to 0ms for instant toggling; respects reduced motion. |