A container component for organizing content with optional header, footer, and sections.
npx micomponents-cli add cardimport {
Card,
CardHeader,
CardTitle,
CardDescription,
CardContent,
CardFooter,
} from "@/components/ui/card";<Card>
<CardHeader>
<CardTitle>Card Title</CardTitle>
<CardDescription>Card description</CardDescription>
</CardHeader>
<CardContent>
Your content goes here
</CardContent>
</Card>user@example.com
Role
Administrator
| Prop | Type | Default | Description |
|---|---|---|---|
| Card | React.HTMLAttributes<HTMLDivElement> | - | Main card container component |
| CardHeader | React.HTMLAttributes<HTMLDivElement> | - | Header section with padding and spacing |
| CardTitle | React.HTMLAttributes<HTMLDivElement> | - | Bold title text with bottom border |
| CardDescription | React.HTMLAttributes<HTMLDivElement> | - | Muted description text |
| CardContent | React.HTMLAttributes<HTMLDivElement> | - | Main content area with padding |
| CardFooter | React.HTMLAttributes<HTMLDivElement> | - | Footer section with border and justified layout |