Surface

Card API

Card is the core Foundry surface primitive for panels, docs blocks, dashboard modules, and CMS containers.

Preview

Marketing

Launch a docs-ready site

Foundry cards can hold copy, media, and actions.

Foundry

Forged rivet card

Heavy framed panel with corner rivets.

Import

import { Card } from "@axonyx/react";

Props

PropTypeDefaultDescription
surface"default" | "forged" | "brushed" | "inset""default"Controls the panel surface treatment.
border"forged"undefinedAdds reinforced frame and corner rivets.
recipe"hero-card" | "feature-section" | "page-header" | "docs-section" | "docs-callout" | "docs-nav" | "docs-code-block" | "command-list"undefinedOptional recipe hook for pre-authored Foundry layout treatments.
brush"horizontal" | "vertical" | "diagonal" | "reverse-diagonal"undefinedDirectional brushed-metal treatment used with `surface="brushed"`.
classNamestringundefinedEscape hatch for app-level composition.
PropTypeDefaultDescription
CardHeaderdiv slot-Header row for title, eyebrow, badges, and trailing actions.
CardEyebrowp slot-Upper label for section, product area, or state.
CardTitleheading slotas="h3"Semantic title primitive for card headings.
CardDescriptionp slot-Muted secondary copy under the title.
CardActionsdiv slot-Flexible action row for buttons, chips, or links.

CSS contract

.ax-card
[data-brush]
[data-surface]
[data-border]
.ax-card__header
.ax-card__eyebrow
.ax-card__title
.ax-card__description
.ax-card__media
.ax-card__content
.ax-card__actions
[data-recipe]

Foundry notes

Surface first, decoration second

Use `surface="inset"` for wells, logs, and preview zones. Use `surface="forged"` for panels that should feel important or machine-like.

Cards also host empty workflows

This is useful for CMS modules, dashboard panels, and scaffold-first product UI.