Examples
Basic
Prop | Default | Type | Description |
---|---|---|---|
defaultOpen | false | boolean | The open state of the collapsible when it is initially rendered. Use when you do not need to control its open state. |
disabled | - | boolean | When true, prevents the user from interacting with the collapsible. |
open | - | boolean | The controlled open state of the collapsible. Can be binded with v-model . |
Read more in Radix Collapsible Root API.
@peduarte starred 3 repositories
@radix-ui/primitives
Slots
Name | Props | Description |
---|---|---|
default | open | The collapsible root slot. |
content | - | The collapsible content slot. |
trigger | open | The button trigger slot. |
Presets
shortcuts/collapsible.ts
Props
types/collapsible.ts