Card
A container component for grouping related content with consistent styling and spacing.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
Usage
Props
Variants
Surface
A subtle elevated card with a light background.
Outline
The default variant with a visible border.
Classic
A solid, opaque card with subtle shadow.
Ghost
No visible container, useful for grouping content without visual boundaries.
Soft
A muted background with no border.
Sizes
Cards support sizes from 1 to 5, controlling padding and internal spacing.
Material
Use the material prop to control the card's material appearance.
Flush Content
Use the flush prop for full-bleed content like images.
Interactive Cards
Use asChild to make the entire card interactive.
© 2026 Kushagra Dhawan. Licensed under MIT. GitHub.