Skip to content
Components

Card

Content surface for panels, tiles, and settings groups.

Composition

Panel anatomy

  • <Card>
    • <CardHeader>
      • <CardTitle />
      • <CardDescription />
      • <CardAction />
      </CardHeader>
    • <CardContent />
    • <CardFooter />
    </Card>

Installation

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

Registry command
See registry manifest

Raw code

Primary installed source

src/registry/sources/control-ui/ui/card.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-card-* · 6 knobsHow the cascade resolves
--cui-card-radius<length-percentage>var(--radius-lg)
--cui-card-background<color>var(--card)
--cui-card-border-color<color>var(--border)
--cui-card-border-width<length>var(--control-rim-width)
--cui-card-shadow*var(--shadow-sm)
--cui-card-backdrop-filter*none