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