This commit is contained in:
Vula Builder
2026-06-23 08:47:09 +00:00
parent 7ddd46406b
commit 98453eda17
+55
View File
@@ -0,0 +1,55 @@
import { cn } from "@/lib/utils"
import React from "react"
interface CardProps {
className?: string
children?: React.ReactNode
}
export function Card({ className, children, ...props }: CardProps & React.HTMLAttributes<HTMLDivElement>) {
return (
<div className={cn("bg-card text-card-foreground rounded-lg border border-border shadow-sm", className)} {...props}>
{children}
</div>
)
}
export function CardHeader({ className, children, ...props }: CardProps & React.HTMLAttributes<HTMLDivElement>) {
return (
<div className={cn("flex flex-col space-y-1.5 p-6", className)} {...props}>
{children}
</div>
)
}
export function CardTitle({ className, children, ...props }: CardProps & React.HTMLAttributes<HTMLHeadingElement>) {
return (
<h3 className={cn("text-2xl font-semibold leading-none tracking-tight", className)} {...props}>
{children}
</h3>
)
}
export function CardDescription({ className, children, ...props }: CardProps & React.HTMLAttributes<HTMLParagraphElement>) {
return (
<p className={cn("text-sm text-muted-foreground", className)} {...props}>
{children}
</p>
)
}
export function CardContent({ className, children, ...props }: CardProps & React.HTMLAttributes<HTMLDivElement>) {
return (
<div className={cn("p-6 pt-0", className)} {...props}>
{children}
</div>
)
}
export function CardFooter({ className, children, ...props }: CardProps & React.HTMLAttributes<HTMLDivElement>) {
return (
<div className={cn("flex items-center p-6 pt-0", className)} {...props}>
{children}
</div>
)
}