Accordion

Last updated: October 14, 2026

Expandable sections with CSS height panel animation and a rotating chevron, backed by Base UI Accordion.

Installation

npx smoothui-cli add accordion

Features

Compound Accordion (Root, Item, Header, Trigger, Panel) with chevron rotation and panel height driven by Base CSS variable --accordion-panel-height plus opacity. Pass multiple on the root to allow several open items.

States

Features

Single-open FAQ-style accordion with springy chevron and height animation.

Multiple

Several panels can stay expanded at once.

Accessibility

Keyboard Interactions

KeyDescription
Enter / SpaceExpands or collapses the focused item
TabMoves focus between triggers

Reduced Motion

When reduced motion is preferred, height and opacity transitions are disabled (instant open/close). Documented via useReducedMotion gating on panel and chevron classes.

Props

Powered by

motion.dev
base-ui