| Prop | Default | Type |
|---|---|---|
as | 'div' | AsTag | ComponentThe element or component this component should render as. Can be overwritten by |
asChild | booleanChange the default rendered element for the one passed as a child, merging their props and behavior. Read our Composition guide for more details. | |
defaultOpen | false | booleanThe open state of the collapsible when it is initially rendered. |
disabled | booleanWhen | |
open | booleanThe controlled open state of the collapsible. Can be binded with | |
unmountOnHide | true | booleanWhen |
| Emit | Payload |
|---|---|
update:open | [value: boolean]Event handler called when the open state of the collapsible changes. |
| Slots (default) | Payload |
|---|---|
open | booleanCurrent open state |
