Collapsible

A panel that expands and collapses.

Ada Park starred 3 projects
website-redesign

Installation

  1. Add the registryOnce per project
  2. Add collapsible

Usage

CollapsibleTrigger is an unstyled button. Pass render to draw it as a Button.

Composition

Examples

Open by default

defaultOpen starts it open. The trigger gets data-panel-open while open, which you can use to rotate an icon.

Props

The tables leave out className, style and render. Parts built on Base UI take them as its styling and composition guides describe.

Collapsible

CollapsibleTrigger

CollapsibleContent