A simple show/hide component with a trigger and content area. Useful for secondary information that doesn't need to be always visible.
Import all parts of the component and piece them together
The root collapsible container.
| Prop | Type | Default |
|---|---|---|
open | boolean | false |
defaultOpen | boolean | false |
disabled | boolean | false |
transitionDuration | number | 0 |
onOpenChange | function | -- |
customRootClass | string | "" |
The button that toggles the collapsible open/closed.
| Prop | Type | Default |
|---|---|---|
asChild | boolean | false |
className | string | "" |
The content that is shown or hidden.
| Prop | Type | Default |
|---|---|---|
className | string | "" |