Open this example in the interactive library
Live preview
Source code
// components/LinkedArticleCard.tsx
export default function LinkedArticleCard({
title = "Field notes",
body = "A guide to the workshop",
href = "/guide",
}: { title?: string; body?: string; href?: string } = {}) {
return (
<article>
<h2>
<a href={href}>{title}</a>
</h2>
<p>{body}</p>
</article>
);
}
