Installation
Add Component
Copy the code snippet below into you components folder.
Integrate Recipe
Integrate this recipe in to your Panda config.
Usage
Examples
Lazy Mount
Use the lazyMount prop to mount the content only when the collapsible is open.
Unmount on Exit
Use the unmountOnExit prop to unmount the content when the collapsible is closed.
Props
Root
| Prop | Default | Type | 
|---|---|---|
| lazyMount | false | booleanWhether to enable lazy mounting | 
| unmountOnExit | false | booleanWhether to unmount on exit. | 
| asChild | booleanUse the provided child element as the default rendered element, combining their props and behavior. | |
| defaultOpen | booleanThe initial open state of the collapsible when rendered. Use when you don't need to control the open state of the collapsible. | |
| disabled | booleanWhether the collapsible is disabled. | |
| ids | Partial<{ root: string; content: string; trigger: string }>The ids of the elements in the collapsible. Useful for composition. | |
| onExitComplete | VoidFunctionThe callback invoked when the exit animation completes. | |
| onOpenChange | (details: OpenChangeDetails) => voidThe callback invoked when the open state changes. | |
| open | booleanThe controlled open state of the collapsible. |