diff --git a/src/components/ui/Card.tsx b/src/components/ui/Card.tsx new file mode 100644 index 0000000..e823933 --- /dev/null +++ b/src/components/ui/Card.tsx @@ -0,0 +1,62 @@ +import React from 'react' +import clsx from 'clsx' + +interface CardProps extends React.HTMLAttributes { + hover?: boolean + padding?: 'none' | 'sm' | 'md' | 'lg' +} + +const paddingClasses = { + none: '', + sm: 'p-4', + md: 'p-5', + lg: 'p-6', +} + +export function Card({ hover, padding = 'md', className, children, ...props }: CardProps) { + return ( +
+ {children} +
+ ) +} + +export function CardHeader({ className, children, ...props }: React.HTMLAttributes) { + return ( +
+ {children} +
+ ) +} + +export function CardTitle({ className, children, ...props }: React.HTMLAttributes) { + return ( +

+ {children} +

+ ) +} + +export function CardDescription({ className, children, ...props }: React.HTMLAttributes) { + return ( +

+ {children} +

+ ) +} + +export function CardFooter({ className, children, ...props }: React.HTMLAttributes) { + return ( +
+ {children} +
+ ) +}