DEV Community

Cover image for New accordion component
Méschac Irung for Tailus

Posted on • Updated on

New accordion component

According to WAI (Web Accessibility Initiative), an accordion is a vertically stacked set of interactive headings that each contain a title, content snippet, or thumbnail representing a section of content. The headings function as controls that enable users to reveal or hide their associated sections of content. Accordions are commonly used to reduce the need to scroll when presenting multiple sections of content on a single page.

The most common use is to create the frequently asked questions (FAQ) section.

The Accordion in Tailus UI React has 6 variants, giving you more options as to how you want the accordion to look.

Tailus UI React Accordion default variant

Tailus UI React Accordion outlined variant

Tailus UI React Accordion elevated variant

Tailus UI React Accordion soft variant

Tailus UI React Accordion ghost variant

Tailus UI React Accordion outlined-elevated variant

Learn more about the Accordion component Here

Top comments (0)