Card
Base surface block - white bg + `border-slate-100` + soft shadow. Building block for FeatureCard, StatBlock, etc.
Live preview
Import & files
Import
import { Card } from "@/components/ui/Card";- Source file
components/ui/Card.tsx
Spec
Spec Props · Usage
Props
| Prop | Type | Default | Description |
|---|---|---|---|
padding | 'sm' | 'md' | 'lg' | 'md' | — |
hoverable | boolean | false | — |
Usage
Never nest Card inside Card (slop-03). Flatten via spacing + typography hierarchy instead.
Figma note: Playground composition pattern - not a single Figma component category. See Playground source.
Examples
Examples 1
- Basic surface card
AI context
AI context
Markdown summary safe to paste into Claude / ChatGPT / Cursor — includes name, status, import, props, axes, examples, figma source.
# CardDomain: general · Category: layoutDesign: extension · Code: code-only
## DescriptionBase surface block - white bg + `border-slate-100` + soft shadow. Building block for FeatureCard, StatBlock, etc.
## Import```tsimport { Card } from "@/components/ui/Card";```Source: `components/ui/Card.tsx`
## Props (2)| Prop | Type | Default | Description ||---|---|---|---|| `padding` | `'sm' | 'md' | 'lg'` | 'md' | || `hoverable` | `boolean` | false | |
## UsageNever nest Card inside Card (slop-03). Flatten via spacing + typography hierarchy instead.
## Examples- **Basic surface card**Related
Status legend
Status legend
- Stable
- Design + code shipped, full DS parity.
- Partial
- Design ready, some variants/states missing in code.
- Coded
- Implemented in code; design canon may not yet exist.
- Design only / Code only
- One side present; awaiting the other.
Phase 1.X-5.2 detail view — read-only metadata. Code preview + recipe + live demo deferred (need @dol/ui registry integration).