fix: add missing CardTitle, CardDescription and CardFooter exports to Card component
This commit is contained in:
parent
4fbe8399df
commit
918357c00c
@ -28,3 +28,27 @@ export function CardContent({ children, className = '' }: CardProps) {
|
|||||||
</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>
|
||||||
|
)
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user