Components
Collapsible
An interactive component that expands/collapses a panel.
Installation
Install ReUI
Refer to the Installation Guide for detailed instructions on setting up ReUI dependencies in your project.
Install dependencies
npm install @radix-ui/react-collapsible
Add component
Copy and paste the following code into your project’s components/ui/collapsible.tsx
file.
Examples
Default
Loading
Card
Loading
API Reference
This component provides a customizable collapsible system with various styles and states.
Collapsible
This component is based on the Collapsible.Root primitive and includes the following custom props:
Prop | Type | Default |
---|---|---|
className |
CollapsibleTrigger
This component is based on the Collapsible.Trigger primitive.
CollapsibleContent
This component is based on the Collapsible.Content primitive and includes the following custom props:
Prop | Type | Default |
---|---|---|
className |