Unfurls a pasted URL into a preview card with site name, title, description and image. Pass metadata you already have, or a fetchMeta function that calls your own endpoint. Empty, loading and resolved are one frame that morphs, with the skeleton inside the card and the favicon and domain held in place; an invalid URL shows an inline message, and a failed fetch falls back to a domain-only card that still opens. The whole card lifts on hover and presses in, with row or stacked layouts and an optional remove button.
pnpm dlx shadcn@latest add "https://sunui.synvize.com/r/link-preview-card.json"