Appearance
Card
Container nội dung — shadow mềm, không border mặc định.
ts
import { Card, CardHeader, CardTitle, CardContent } from "@minap/ui";Examples
Mẫu sống trong Preview; chọn View code khi cần copy.
Usage
tsx
import { Card, CardContent, CardHeader, CardTitle } from "@minap/ui";
export function Example() {
return (
<>
<Card className="w-full">
<CardHeader>
<CardTitle>Card title</CardTitle>
</CardHeader>
<CardContent className="text-sm text-muted-foreground">Card body</CardContent>
</Card>
</>
);
}Props / API
| Prop / API | Type | Default | Notes |
|---|---|---|---|
className | string | — | Thêm border-card-border nếu cần cạnh hairline |
Behavior
- rounded-xl + shadow (token elevation)
- không border mặc định