Card
Container for grouped content with header, body, and footer sections.
Basic Card
Simple card with content
This is a basic card with some content inside. Cards are used to group related information together.
Variants
Different card variants
Default
Surface background
Outlined
With border
Elevated
With shadow
With Header
Card with title and subtitle
Card Title
This is a subtitle
Card content goes here. The header provides context for the card content.
With Header Action
Card with action button in header
Settings
Manage your preferences
Configure your application settings and preferences here.
With Footer
Card with footer actions
Confirm Action
Are you sure you want to proceed with this action? This cannot be undone.
Hoverable & Clickable
Interactive card
Hoverable
Hover to see effect
Clickable
Click me
User Profile Card
Example of a complete card
JDJohn Doe@johndoe
JD
John Doe
@johndoe
Product designer and developer. Building beautiful interfaces and experiences.
| Prop | Type | Default | Description |
|---|---|---|---|
variant | 'default' | 'outlined' | 'elevated' | 'default' | Card variant |
padding | 'none' | 'small' | 'medium' | 'large' | 'medium' | Card padding size |
hoverable | boolean | false | Whether the card is hoverable |
clickable | boolean | false | Whether the card is clickable (adds cursor pointer) |
CardHeader Props
| Prop | Type | Default | Description |
|---|---|---|---|
title | React.ReactNode | undefined | Title text |
subtitle | React.ReactNode | undefined | Subtitle text |
action | React.ReactNode | undefined | Right side action/content |
check_circleWhen to use
- Use to group related content together
- Use elevated variant for content that needs emphasis
- Use hoverable/clickable for interactive cards
cancelWhen not to use
- Don't nest cards within cards
- Don't use cards for single pieces of information
- Don't mix different card variants in the same section