fix: add missing CardTitle, CardDescription and CardFooter exports to Card component

This commit is contained in:
Aleksandar 2025-12-11 14:10:33 +01:00
parent 4fbe8399df
commit 918357c00c

View File

@ -27,4 +27,28 @@ export function CardContent({ children, className = '' }: CardProps) {
{children} {children}
</div> </div>
) )
}
export function CardTitle({ children, className = '' }: CardProps) {
return (
<h2 className={`text-lg font-semibold ${className}`}>
{children}
</h2>
)
}
export function CardDescription({ children, className = '' }: CardProps) {
return (
<p className={`text-sm text-gray-600 ${className}`}>
{children}
</p>
)
}
export function CardFooter({ children, className = '' }: CardProps) {
return (
<div className={`mt-4 ${className}`}>
{children}
</div>
)
} }