1. Docs
  2. Components
  3. Collapsible

Collapsible

An interactive component which expands/collapses a panel.

Installation

Anatomy

Trigger

You can use the <Collapsible.Trigger /> component to create a button that toggles the visibility of the collapsible content, or you can use the <Button /> component as the trigger by passing it a slot="trigger" prop.

Animation

The accordion uses the --disclosure-panel-height CSS variable to animate the height of the content area.