Skip to content
RivetUI

Collapsible

Reveals or hides one related region from a persistent trigger.

@rivetui/collapsible

Preview

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/collapsible
Inspect registry item

Public interface

API reference

Component-specific props are listed here. Native element and Base UI props continue to pass through.

PropTypeDefault
openboolean—
defaultOpenbooleanfalse
onOpenChange(open: boolean, details) => void—
disabledbooleanfalse
Rivet UI / CollapsibleComponents engineered, not decorated.