feat(ui): Card

This commit is contained in:
Bastien Chanot committed 2026-05-18 21:15:53 +02:00
1 parent fe5adcd249
commit 226678017f
1 file changed
+19 -2
+19 -2
View File
@@ -1,3 +1,20 @@
export default function Card() {
return <div>Card placeholder</div>
import type { ReactNode } from 'react'
export interface CardProps {
children: ReactNode
className?: string
as?: 'div' | 'section' | 'article'
}
export default function Card({ children, className = '', as: Tag = 'div' }: CardProps) {
return (
<Tag
className={[
'rounded-2xl border border-[var(--color-border)] bg-[var(--color-surface)] shadow-sm',
className,
].join(' ')}
>
{children}
</Tag>
)
}