Zazz Design Framework
Components

Accordion

Collapsible sections built on native details and summary elements. No JavaScript.

The accordion is a .accordion wrapping native <details> and <summary> elements. Open/close state, keyboard support, and the height transition (via ::details-content) are handled by the browser.

Default

Loading components…

There are no data-* attributes to configure. Author each panel as a <details class="border-b"> with a <summary class="font-strong hover:text-muted-foreground">, an inline chevron <svg> that rotates on open, and a <div class="pb-sm"> body. Multiple panels can be open at once by default; give a group of <details> the same name to make them mutually exclusive.

Theming runs through tokens: --accordion-summary-padding-block, --accordion-icon-size, and --accordion-icon-transform-open (the open-state chevron rotation).

On this page