Card
A flexible container component with Header, Content, and Footer sub-components for structured layouts
Quick Preview
Card Title
Card description goes here.
Main content area for the card.
Installation
// Copy the Card component fromsrc/components/ui/Card.tsx
Usage
import {Card,CardHeader,CardTitle,CardDescription,CardContent,CardFooter,} from '@/components/ui/Card'export default function Example() {return (<Card><CardHeader><CardTitle>Title</CardTitle><CardDescription>Subtitle</CardDescription></CardHeader><CardContent>Your content here</CardContent><CardFooter><button>Action</button></CardFooter></Card>)}
Examples
Simple Card (Header + Content)
Notifications
You have 3 unread messages.
Check your inbox to review the latest updates.
Card Grid โ Product Cards
Starter
Perfect for growing teams
Free
Pro
Perfect for growing teams
$49/mo
Enterprise
Perfect for growing teams
Custom
Unstyled Card (custom container)
Custom Container
No default border or shadow.
Prompt Preview
Copy a prompt that recreates this UI
Paste this into your AI coding assistant to generate code that closely matches the reference, including color, size, shape, typography, spacing, and polish.
Copy-ready AI prompt
Starts from the current visual reference and project constraints.
Tweak only product-specific copy or data after the first generation pass.
Props
All sub-components (CardHeader, CardTitle, CardDescription, CardContent, CardFooter) accept children and className.
| Prop | Type | Default | Description |
|---|---|---|---|
children* | React.ReactNode | - | Card content |
unstyled | boolean | false | Remove default border/shadow/background |
className | string | - | Additional CSS classes |
Features
- โComposable sub-components: CardHeader, CardTitle, CardDescription, CardContent, CardFooter
- โunstyled prop for custom containers
- โResponsive padding and border radius
- โServer Component (no state)