Skip to content

Card

Groups related content and actions. Outlined, elevated or filled.

Team members

Invite people and manage roles.

KSMP2 members

Elevated

Floats above the page.

For overlapping or draggable cards.

Filled

Sits on bg-secondary.

For cards inside white panels.
CardLive · light and dark follow the theme switch

Add the source to a shadcn project

npx shadcn@latest add https://docs.atomus.io/r/card.jsonOpen in v0

Installs the component source, its CSS and the Atomus tokens into components/atomus/. How the registry works

From guidelines/components/card.md · Open in Figma: Card

Properties, variants and anatomy of the Figma components. React props use the same names.

Container for product and marketing layouts. Content is a slot. Styles: Outlined, Elevated, Filled. Padding md (16) / lg (24).

Variants: 6

Property Type / options
Content slot (any content)
Title text
Supporting text text
Header boolean (on)
Header action boolean (on)
Footer boolean (off)
Style Outlined · Elevated · Filled
Padding md · lg

Header for cards, tables and settings sections: title, badge, supporting text and actions.

Variants: 3

Property Type / options
Title text
Badge boolean (on)
Actions boolean (on)
Type Default · Avatar · Icon

Footer row for cards, tables and settings sections: actions, pagination or a link.

Variants: 3

Property Type / options
Type Actions · Pagination · Link

Call-to-action block inside app pages or articles.

Variants: 3

Property Type / options
Title text
Text text
Style Subtle · Brand · Outline
import { Card } from '@stanvision/atomus-react';
<Card
title="Team members"
supportingText="Invite people and manage roles."
headerAction={<Button hierarchy="outline" size="sm">Invite</Button>}
footer={<Button hierarchy="primary" size="sm">Save</Button>}
>
…content
</Card>

A container that groups related content and actions.

Full types and defaults are in React API at the end of the page.

  • title, supportingText, headerAction (Figma: Title, Supporting text, Header action).
  • children — the Content slot; footer — buttons aligned right.
  • variant — outlined · elevated · filled; padding — md 16 · lg 24.

Don’t

  • Don’t nest cards; use dividers or a filled card instead.
  • Don’t add a coloured left border to signal status — use Alert or Badge.

From the Figma guidelines.

Do

  • Put any content into the Content slot.
  • Use the Header and Footer booleans instead of building your own.
  • Use Outlined on white backgrounds and Filled on grey ones.

Forbidden

  • Never nest cards inside cards.
  • Never add shadows by hand — pick the Elevated style.
  • Never detach to change padding — use the Padding variant.

Generated from react/src/components by scripts/gen-react-api.mjs — the same tables agents read in guidelines/components/card.md.

Use only these props; anything else is not part of the API.

import { Card } from '@stanvision/atomus-react'; — source: react/src/components/Card.tsx

Prop Type Default Description
title ReactNode — Figma: Title (Header on)
supportingText ReactNode — Figma: Supporting text
headerAction ReactNode — Figma: Header action — e.g. a Button or icon button, top right
children ReactNode — Figma: Content slot
footer ReactNode — Figma: Footer — buttons aligned right
variant 'outlined' | 'elevated' | 'filled' 'outlined' Figma: Style
padding 'md' | 'lg' 'md' Figma: Padding — md 16 · lg 24

Also accepts every native HTML attribute (id, role …), except title, which is replaced above.