API and Development
Use Collapsible, CollapsibleTrigger, and CollapsibleContent when a section should hide or reveal body copy without accordion chrome. The default export wires a trigger slot; compose CollapsibleContent as a sibling following Radix patterns.
Name | Type | Default | Description |
|---|---|---|---|
|
| — | Additional CSS class name applied to the collapsible container. |
|
|
| Initial open state for uncontrolled usage. |
|
| — | Callback fired when the open state changes. |
|
| — | Controlled open state of the collapsible section. |
|
|
| When true (default), the entire child tree is the trigger. Set false and wrap only the header in {@link CollapsibleTrigger} when content contains nested controls or padded gutters that must not toggle. |
Interactive examples and edge cases for this component are in Storybook.
On this page