Components
Card
Content surface for panels, tiles, and settings groups.
Composition
Panel anatomy
- <Card>
- <CardHeader>
- <CardTitle />
- <CardDescription />
- <CardAction />
- <CardContent />
- <CardFooter />
- <CardHeader>
Installation
The Control UI source installs this primitive from src/registry/sources/control-ui/ui/card.tsx.
Raw code
Primary installed source
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