Collapsible
A primitive that hides and shows content. Unlike Accordion, it has no built-in styling — you supply the trigger and content layout. Built on Radix UI Collapsible.
Category
Installation
Props
Forwards all Radix Collapsible Root props.
| Prop | Type | Default | Description |
|---|---|---|---|
open | boolean | — | Controlled open state. |
defaultOpen | boolean | false | Uncontrolled default state. |
onOpenChange | (open: boolean) => void | — | Called when open state changes. |
disabled | boolean | false | Disables the trigger. |