23 lines
658 B
TypeScript
23 lines
658 B
TypeScript
import type { ReactNode } from 'react'
|
|
|
|
export function Card({
|
|
kicker,
|
|
title,
|
|
meta,
|
|
children,
|
|
}: {
|
|
kicker?: ReactNode
|
|
title?: ReactNode
|
|
meta?: ReactNode
|
|
children?: ReactNode
|
|
}) {
|
|
return (
|
|
<div className="flex flex-col gap-2 p-4 bg-surface rounded-xl shadow-card">
|
|
{kicker && <span className="text-[11px] font-semibold tracking-wide uppercase text-muted">{kicker}</span>}
|
|
{title && <h3 className="text-base font-[650]">{title}</h3>}
|
|
{children && <div className="flex-1 text-[13px] text-ink-3">{children}</div>}
|
|
{meta && <div className="flex items-center gap-1.5 text-xs text-faint">{meta}</div>}
|
|
</div>
|
|
)
|
|
}
|