Skip to content
caliper ui pro docs

Link unfurl

A preview card for a link, with image, title and source.

Pro

Maya Chen 10:42

Worth a read before Thursday's review, especially the part on durations.

Interface Notes

Designing calm motion for product interfaces (opens in a new tab)

Movement should explain a change, then get out of the way. Durations, easing and reduced motion in practice.

When to use

  • Showing a pasted URL inside a message or note.

When not to use

  • The link cannot be fetched safely.

Installation

terminal
pnpm dlx shadcn@latest add @caliper/link-unfurl

Adds its 2 files to components/ui/, each with its own stylesheet, and installs their packages. Pro installs with your access token, set up once per project. See Pro access. The first part also adds Caliper UI’s tokens; import them once as in Installation.

API reference

LinkUnfurl

7 props
PropTypeDefault
url *string—
previewLinkPreview—
status"loading" | "error" | "ready"preview ? "ready" : "loading"
onRetry(() => void)—
onRemove(() => void)—
layout"vertical" | "horizontal""horizontal"
classNamestring—

Keyboard

  • No custom key handling; Tab and the native activation keys do the work.

Accessibility

It exposes status and alert semantics, with aria-busy, aria-label and aria-hidden kept in step with state. Changes that matter are announced through a live region.

Notes for AI

Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.

/docs/components/link-unfurl.md

The index of every part is at /llms.txt.

More in Media viewers