Skip to content

Collapsible

Hides extra content behind a simple toggle button, allowing users to expand and read details only when they need them.

1 KB
•
Updated on August 21, 2026

Installation

Bash

Usage

Code
Code

Anatomy

Code

Accessibility

  • Adheres to the WAI-ARIA disclosure pattern with aria-expanded state updates.

Keyboard Interactions

API Reference

Collapsible

Root component. Alias for Collapsible.Root from Base UI.

CollapsibleTrigger

Trigger button that toggles the collapsible panel. Styled wrapper for Collapsible.Trigger from Base UI.

CollapsiblePanel

Collapsible content panel. Styled wrapper for Collapsible.Panel from Base UI with animated height transitions. Also exported as CollapsibleContent.