Files
e-tib.com/components/ui/Card.tsx
Marc Mintel d14122005d Initial commit: E-TIB production hardening & E2E foundation
Former-commit-id: ef04fca3d76375630c05aac117bf586953f3b657
2026-04-28 19:11:38 +02:00

15 lines
425 B
TypeScript

import React from 'react';
import { cn } from './utils';
interface CardProps extends React.HTMLAttributes<HTMLElement> {
tag?: 'div' | 'article' | 'section' | 'aside' | 'header' | 'footer' | 'nav' | 'main';
}
export function Card({ className, children, tag: Tag = 'div', ...props }: CardProps) {
return (
<Tag className={cn('premium-card overflow-hidden', className)} {...props}>
{children}
</Tag>
);
}