Collapsible
One panel that opens and closes under its trigger, a solid card by default whose trigger fills its top edge to edge and ends on an arrow that turns as it opens.
Usage
Examples
Appearances
appearance sets its frame on the kit's one scale: solid, the default, soft and outline a card the trigger fills edge to edge, and transparent no frame, for a fold inside another surface such as a sidebar.
Sizes
size sets the trigger at a Button's height, sm 32px, base 40px (the default) or lg 48px, and the panel under it to match.
Border radius
borderRadius sets the corners of its frame on the kit's one scale: none, xs 4px, sm 6px, base 8px (the default), lg 12px or xl 16px, the trigger following them; transparent, with no frame, rounds its trigger instead.
With icon
An Icon in the trigger sits before its words, at a Button's icon size.
Disabled
disabled dims the trigger and holds the panel as it is, beside one as it is by default.
API Reference
Collapsible
CollapsibleProps · components/Collapsible/Collapsible.types.tsCollapsibleTrigger
CollapsibleTriggerProps · takes the props of Radix Collapsible.TriggerCollapsibleContent
CollapsibleContentProps · takes the props of Radix Collapsible.ContentIt also takes the props of Radix Collapsible.Root.