-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCard.jsx
More file actions
52 lines (45 loc) · 1.18 KB
/
Copy pathCard.jsx
File metadata and controls
52 lines (45 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
export const Card = ({ children, className = '', ...props }) => {
return (
<div
className={`rounded-lg border bg-card text-card-foreground shadow-sm ${className}`}
{...props}
>
{children}
</div>
);
};
export const CardHeader = ({ children, className = '', ...props }) => {
return (
<div className={`flex flex-col space-y-1.5 p-6 ${className}`} {...props}>
{children}
</div>
);
};
export const CardTitle = ({ children, className = '', ...props }) => {
return (
<h3 className={`text-xl font-semibold tracking-tight ${className}`} {...props}>
{children}
</h3>
);
};
export const CardDescription = ({ children, className = '', ...props }) => {
return (
<p className={`text-sm text-muted-foreground ${className}`} {...props}>
{children}
</p>
);
};
export const CardContent = ({ children, className = '', ...props }) => {
return (
<div className={`p-6 pt-0 ${className}`} {...props}>
{children}
</div>
);
};
export const CardFooter = ({ children, className = '', ...props }) => {
return (
<div className={`flex items-center p-6 pt-0 ${className}`} {...props}>
{children}
</div>
);
};