niceui

Accordion & Collapsible Components

Animated accordions and collapsible sections for React and Tailwind CSS, including FAQ layouts. Smooth height animation, keyboard support and proper ARIA attributes.

4 free components · React + Tailwind CSS · MIT licensed

FAQ

How do I animate an accordion's height?

Animate grid-template-rows from 0fr to 1fr, or measure the content height and transition to it. Both avoid janky max-height hacks.

Related topics