Collapsible

Last updated: October 14, 2026

Single expandable region with the same CSS height panel pattern as Accordion, backed by Base UI Collapsible.

Installation

npx smoothui-cli add collapsible

Features

CollapsibleRoot, CollapsibleTrigger, and CollapsiblePanel wrap Base UI Collapsible. Panel height uses --collapsible-panel-height with opacity; the chevron rotates when the panel is open.

States

Features

Closed by default — click the trigger to reveal content.

Default open

Starts expanded via defaultOpen.

Accessibility

Keyboard Interactions

KeyDescription
Enter / SpaceToggles the panel
TabMoves focus to / from the trigger

Reduced Motion

Height and opacity transitions are skipped when prefers-reduced-motion is preferred.

Props

Powered by

motion.dev
base-ui