Collapsible
An interactive component which expands/collapses a panel.
Installation
Copy the following code into your app directory.
Command
Command
Manual
Manual
uv
Anatomy
Use the following composition to build a Collapsible component.
Examples
High Level Demo
Uses the simplified collapsible() API with trigger and content props for quick implementation.
Low Level Demo
Uses the low-level collapsible.root(), collapsible.panel(), and ClientStateVar for full control over state and structure.
@radix-ui/primitives