Skip to content
Components

Accordion

Stacked disclosure rows with measured panel animation.

Composition

Anatomy

  • <Accordion>
    • <AccordionItem>
      • <AccordionTrigger />
      • <AccordionPanel />
      </AccordionItem>
    </Accordion>

Installation

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

Registry command
See registry manifest

Raw code

Primary installed source

src/registry/sources/control-ui/ui/accordion.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-accordion-* · 5 knobsHow the cascade resolves
--cui-accordion-item-border-color<color>var(--border)
--cui-accordion-item-border-width<length>var(--control-rim-width)
--cui-accordion-trigger-foreground<color>var(--foreground)
--cui-accordion-trigger-hover-foreground<color>oklch(from var(--foreground) l c h / 0.8)
--cui-accordion-icon-foreground<color>var(--muted-foreground)