Capítulo 14 de 43
A single interactive panel that expands/collapses — the minimal building block Accordion generalizes into multiple coordinated items.
Root → Trigger + Content.--radix-collapsible-content-width/-height: same CSS-variable pattern as Accordion's content, used to animate real height instead of max-height hacks.disabled: available directly on Root, unlike Accordion where it lives on Item..CollapsibleContent[data-state="open"] { animation: slideDown 300ms ease-out; }
.CollapsibleContent[data-state="closed"] { animation: slideUp 300ms ease-out; }
@keyframes slideDown { from { height: 0; } to { height: var(--radix-collapsible-content-height); } }
Collapsible instead of Accordion when you have exactly one independent panel — no Item/value coordination needed.Space/Enter toggle when the trigger is focused.