API and Development
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 |
|---|---|---|---|
appearance | CollapsibleAppearance | CollapsibleAppearance.Card | Paint of the container and its trigger. |
children | ReactNode | — | Compose a {@link CollapsibleTrigger }, optional summary content, and a {@link CollapsibleContent }. |
className | string | — | Classes appended to the container. |
defaultOpen | boolean | false | Initial open state when uncontrolled. |
onOpenChange | CollapsibleOpenChangeHandler | — | Fires when the trigger requests a change. |
open | boolean | — | Controlled open state. |
variant | CollapsibleVariant | CollapsibleVariant.Default | Container chrome of the card. Flush drops the card's border, padding and gap. It adds nothing under
CollapsibleAppearance.Plain, which draws no card. |