Files
psalmtafel-webservice/components/Card.tsx
T
robin f26060cf6b feat: add Card component
feat: create Textfield component
style: more light and dark mode support
2026-07-25 18:27:40 +02:00

14 lines
416 B
TypeScript

import { ReactNode } from "react";
export default function Card({title, children}: {title: string, children: ReactNode}) {
return (
<section className="p-5 flex flex-col justify-between">
<h2 className="text-lg font-semibold mb-4 flex items-center gap-2">
{title}
</h2>
<div>
{children}
</div>
</section>
);
}