Beta

Accordion

A vertically stacked set of interactive headings that each reveal an associated section of content built with Headless UI.

Animate UI is an open-source distribution of React components built with TypeScript, Tailwind CSS, and Motion.

Installation

Props

Animate UI props

AccordionButton

PropTypeDefault
transition?
Transition
{ type: 'spring', stiffness: 150, damping: 17 }

AccordionPanel

PropTypeDefault
transition?
Transition
{ type: 'spring', stiffness: 150, damping: 17 }

Credits

  • We use Headless UI for the disclosure component.
  • We take our inspiration from Shadcn UI for the accordion style.

On this page