About
An unfurled link card showing an optional 2:1 cover image, title, two-line description and the URL, that opens the link in a new tab — useful for shared links in chat, comments, posts and bookmarks.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Link Preview to your project and fits it to your theme.
Code
How Link Preview is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import { LinkPreview } from "@/components/ui/link-preview";
export default function LinkPreviewDemo() {
return (
<div className="flex w-full items-center justify-center p-8">
<div className="w-full max-w-sm space-y-4">
<LinkPreview
className="w-full"
url="https://lumen.example/changelog/scheduled-payouts"
title="Scheduled payouts are here"
description="Pick a day of the week and Lumen pays approved bills in one batch, with a summary by email."
image="https://cdn.21st.dev/assets/mirror/09/099a930fdf79a62c6b53c7d015b33407f46311cd15dacded07c2c4f04ec5f27e.jpg"
/>
<LinkPreview
className="w-full"
url="https://docs.lumen.example/billing/late-fees"
title="Late fees and grace periods"
description="How Lumen calculates late fees, and how to waive one for a single invoice."
/>
</div>
</div>
);
}







