Skip to content
Components

Collapsible

Accessible disclosure primitive with measured open and close motion.

Composition

Anatomy

  • <Collapsible>
    • <CollapsibleTrigger />
    • <CollapsibleContent />
    </Collapsible>

Installation

The Control UI source installs this primitive from src/registry/sources/control-ui/ui/collapsible.tsx.

Registry command
See registry manifest

Raw code

Primary installed source

src/registry/sources/control-ui/ui/collapsible.tsx

Knobs

Typed custom properties the recipe paints with. Set one on the root — style, a utility class, or a skin — and every slot inherits it.

--cui-collapsible-* · 2 knobsHow the cascade resolves
--cui-collapsible-trigger-radius<length-percentage>var(--radius-control)
--cui-collapsible-trigger-hover-background<color>var(--hover-fill)