mirror of
https://github.com/VibedByKaKi/t3-code-android-nightly.git
synced 2026-10-11 12:51:15 +02:00
21 lines
500 B
TypeScript
21 lines
500 B
TypeScript
import type { ReactNode } from "react";
|
|
|
|
// A React component styled with Tailwind utility classes.
|
|
export function Card({
|
|
title,
|
|
children,
|
|
className,
|
|
}: {
|
|
title: string;
|
|
children: ReactNode;
|
|
className?: string;
|
|
}) {
|
|
return (
|
|
<div
|
|
className={`mt-6 rounded-xl border border-slate-200 bg-white p-6 shadow-sm ${className ?? "max-w-md"}`}
|
|
>
|
|
<h2 className="text-lg font-semibold">{title}</h2>
|
|
<div className="mt-2 text-slate-600">{children}</div>
|
|
</div>
|
|
);
|
|
}
|