Collapsible
Reveals or hides one related region from a persistent trigger.
@rivetui/collapsiblePreview
Explore each composition interactively, then open its code in the same context.
Default
Reveal secondary detail in place while keeping the trigger and content structurally connected.
Note
Use disabled on Collapsible when the disclosure should remain visible but unavailable.
- Primary region
- fra1
- Failover region
- iad1
- Health threshold
- 3 checks
Compact content
The content region accepts concise inline information as well as structured layouts.
Registry
Installation
Add the component source and its declared dependencies with the shadcn CLI.
Install component
bunx --bun shadcn@latest add @rivetui/collapsiblePublic interface
API reference
Component-specific props are listed here. Native element and Base UI props continue to pass through.
| Prop | Type | Default |
|---|---|---|
open | boolean | — |
defaultOpen | boolean | false |
onOpenChange | (open: boolean, details) => void | — |
disabled | boolean | false |