Collapsible
An interactive component which expands/collapses a panel.
Loading...
API Reference
Root
Contains all the parts of a collapsible.
Prop | Type | Default |
---|---|---|
disabled | boolean | false |
open | boolean | - |
onOpenChange | EventEmitter | new EventEmitter<boolean>() |
Data attribute | Values |
---|---|
[data-state] | "open" | "closed" |
[data-disabled] | Present when disabled |
Trigger
The button that toggles the collapsible.
Data attribute | Values |
---|---|
[data-state] | "open" | "closed" |
[data-disabled] | Present when disabled |
Content
The component that contains the collapsible content.
Data attribute | Values |
---|---|
[data-state] | "open" | "closed" |
[data-disabled] | Present when disabled |
Accessibility
Adheres to the Disclosure WAI-ARIA design pattern.