Card
A container component for grouping related content with consistent styling and spacing.View source →This component's API and documentation are under review and may change. Use with caution in production.
Card is a versatile container component for grouping related content. It provides consistent styling, spacing, and visual hierarchy through its variant and size props.
This is an enhanced version of the Card from Radix Themes.
Playground
Installation
shellUsage
tsxProps
Variants
Surface
A subtle elevated card with a light background.
tsxOutline
The default variant with a visible border.
tsxClassic
A solid, opaque card with subtle shadow.
tsxGhost
No visible container, useful for grouping content without visual boundaries.
tsxSoft
A muted background with no border.
tsxSizes
Cards support sizes from 1 to 5, controlling padding and internal spacing.
tsxMaterial
Use the material prop to control the card's material appearance.
tsxFlush Content
Use the flush prop for full-bleed content like images.
tsxInteractive Cards
Use asChild to make the entire card interactive.
tsx