Accordion

Collapsible content sections with smooth animations

View Source

Examples

Default

Basic accordion with single item open at a time.

Yes. It adheres to the WAI-ARIA design pattern with proper aria-expanded attributes and keyboard navigation support.
Yes. It comes with theme-aware default styles that match your design system.
Yes. It's animated by default with smooth height transitions.
html

Separated

Accordion with visual separation between items using .accordion-separated class.

We accept all major credit cards, PayPal, and bank transfers.
Yes, you can cancel at any time. Access continues until billing period ends.
We offer a 14-day money-back guarantee.
html

Allow Multiple Open

Enable multiple items to be open simultaneously with data-allow-multiple attribute.

Multiple items can be open at the same time.
Compare information across different sections.
Great for FAQ pages or documentation.
html

Usage

Import the accordion component in your JavaScript:

Available Classes

.accordion
.accordion-item
.accordion-trigger
.accordion-content
.accordion-body
.accordion-separated
.accordion-flush