Components
Card
A container for displaying content and actions on a single topic.
Demo
Code
Create project
Deploy your new project in one-click.
Your project will be deployed to the edge.
Cancel
Deploy
Installation
Usage
Basic Usage
Variants
Simple Card
Without header/footer:
Card with Actions
Footer Alignment
Content Spacing
API Reference
Card
| Prop | Type | Default | Description |
|---|---|---|---|
children | ReactNode | Required | Card content |
variant | 'default' | 'elevated' | 'outline' | 'ghost' | 'filled' | 'default' | Visual variant |
className | string | — | Additional classes |
CardHeader
| Prop | Type | Default | Description |
|---|---|---|---|
children | ReactNode | Required | Header content |
spacing | 'default' | 'sm' | 'lg' | 'default' | Gap between children |
className | string | — | Additional classes |
CardTitle
| Prop | Type | Default | Description |
|---|---|---|---|
children | ReactNode | Required | Title text |
className | string | — | Additional classes |
CardDescription
| Prop | Type | Default | Description |
|---|---|---|---|
children | ReactNode | Required | Description text |
className | string | — | Additional classes |
CardContent
| Prop | Type | Default | Description |
|---|---|---|---|
children | ReactNode | Required | Main content |
spacing | 'default' | 'sm' | 'lg' | 'none' | 'default' | Top padding |
className | string | — | Additional classes |
CardFooter
| Prop | Type | Default | Description |
|---|---|---|---|
children | ReactNode | Required | Footer content |
spacing | 'default' | 'sm' | 'lg' | 'none' | 'default' | Top padding |
alignment | 'start' | 'center' | 'end' | 'between' | 'start' | Content alignment |
className | string | — | Additional classes |