sailfork / t3code-github / .repos/ alchemy-effect/ examples/ gcp-website-astro/ src/ components/ Card.astro

---
// A plain Astro component styled with Tailwind utility classes.
interface Props {
  title: string;
  body: string;
}

const { title, body } = Astro.props;
---

<div class="mt-6 max-w-md rounded-xl border border-slate-200 bg-white p-6 shadow-sm">
  <h2 class="text-lg font-semibold">{title}</h2>
  <p class="mt-2 text-slate-600">{body}</p>
</div>