Usage
Controlled collapsible
API reference
Collapsible (Root)
The root container for the collapsible.boolean
The controlled open state of the collapsible.
boolean
default:"false"
The default open state when uncontrolled.
(open: boolean) => void
Callback fired when the open state changes.
boolean
Whether the collapsible is disabled.
Collapsible.Trigger
The button that toggles the collapsible state.string
Additional CSS class for the trigger.
ReactNode
The content of the trigger button.
Collapsible.Panel
The collapsible content area.string
Additional CSS class for the panel.
ReactNode
The content to display when expanded.