Card
Content container with header, body, and footer sections — bordered, borderless, or compact via className.
npx @slipstream-ui/cli@latest add cardFull anatomy
Profile
Manage your account settings
Form fields here.
Usage this month
Last 30 days
1,284
events processed
Updated 2 minutes ago
Variants
Bordered (default)
Default card
Border + subtle background.
Borderless
Borderless card
border-0 shadow-none — sits on the page like a panel.Compact
Compact card
Tighter padding for dense lists and sidebars.
Raised
Raised card
border-0 shadow-md — emphasis without a border.Header & footer layouts
Header only
Cards compose — use the sections you need.
Content only — no header, no footer.
Footer via CardFooter← split ends
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| children | ReactNode | — | Card sub-components: CardHeader, CardTitle, CardDescription, CardContent, CardFooter. |
| asChild | boolean | false | Render the child element (router Link, <a>) with card styling instead of a div. |
| className | string | — | Variants: borderless (border-0 shadow-sm), compact (p-4), raised (shadow-md), etc. |
| CardHeader / CardContent / CardFooter className | string | — | Per-section spacing overrides for compact or custom layouts. |
Accessibility
- CardTitle renders as h3; maintain logical heading order in your page.
- Cards are generic containers — give interactive content inside them real labels and roles.
- Do not nest landmark roles (header/footer inside cards stay neutral divs).
Browser support
| Browser | Tested versions |
|---|---|
| Chrome | 111+ (Mar 2023) |
| Edge | 111+ (Mar 2023) |
| Firefox | 121+ (Dec 2023) |
| Safari | 17.2+ — macOS & iOS (Dec 2023) |
Slipstream components rely only on CSS custom properties, Flexbox/Grid, and ARIA — the everyday baseline of the last two years of evergreen releases. Anything newer is progressive enhancement: unsupported browsers keep full functionality with static behavior instead of animations.