Files
Sankofa/portal/src/components/ui/Card.tsx

40 lines
1005 B
TypeScript
Raw Normal View History

import * as React from 'react';
interface CardProps {
children: React.ReactNode;
className?: string;
}
export function Card({ children, className = '' }: CardProps) {
return (
<div className={`rounded-lg border bg-card text-card-foreground shadow-sm ${className}`}>
{children}
</div>
);
}
export function CardHeader({ children, className = '' }: CardProps) {
return (
<div className={`flex flex-col space-y-1.5 p-6 ${className}`}>
{children}
</div>
);
}
export function CardTitle({ children, className = '' }: CardProps) {
return (
<h3 className={`text-2xl font-semibold leading-none tracking-tight ${className}`}>
{children}
</h3>
);
}
export function CardContent({ children, className = '' }: CardProps) {
return <div className={`p-6 pt-0 ${className}`}>{children}</div>;
}
export function CardDescription({ children, className = '' }: CardProps) {
return <p className={`text-sm text-muted-foreground ${className}`}>{children}</p>;
}