Link Unfurl Check

Link Unfurl Check is a copy-paste React component that stops posted a localhost link preview before the user submits. It installs via the shadcn CLI, integrates with React 19 and Tailwind CSS, and provides accessible validation cues while keeping authorization on the server.

pnpm dlx shadcn@latest add @bollard/link-unfurl-check
Version 0.1.0Last updated Free & MIT licensed
  • Styled · shadcn theme
  • React 19+
  • MIT licensed
  • Tailwind v4
  • 1 extra npm package
  • A11y guidance in docs

StopsPosted a localhost link preview

Was this component page useful?

How do I install Link Unfurl Check?

pnpm dlx shadcn@latest add @bollard/link-unfurl-check

The files land in your project. They're yours to edit.

How do I use Link Unfurl Check in React?

link-unfurl-check-usage.tsx
import { LinkUnfurlCheck, type UnfurlFetcher, type UnfurlPreview } from "@/components/ui/link-unfurl-check"

<LinkUnfurlCheck
  label="Share in #announcements"
  defaultValue="https://staging.acme.dev/blog/launch?utm_source=newsletter&utm_medium=email"
  publicOrigin="https://acme.com"
  fetchPreview={fetchPreview}
  placeholder="https://"
  delay={250}
/>

What input mistakes does Link Unfurl Check catch?

  • localhost and staging URLs, with a swap to publicOrigin
  • Tracking parameters such as utm_*
  • Redirects, especially to a sign-in page
  • Missing or undersized preview images

What props does Link Unfurl Check accept?

LinkUnfurlCheck props
PropTypeDefault
label

Visible label.

string"Link"
value

Controlled URL.

string—
defaultValue

Initial URL when uncontrolled.

string""
onValueChange

Called with the URL on every change and when a fix is applied.

(value: string) => void—
fetchPreview* (required)

Reads the page's tags, usually through your server (see `parseOpenGraph`).

UnfurlFetcher—
publicOrigin

The live origin offered in place of localhost or staging, e.g. "https://acme.com".

string—
delay

Pause in ms after typing before the page is fetched.

number500
messages

Overrides for the messages in `UNFURL_MESSAGES`.

Partial<Messages>—
previewLabel

Heading above the predicted card.

string"How it will unfurl"

* required. Also accepts the native props of <input> (className, aria-*, data-*…), passed through to it.

How is Link Unfurl Check accessible?

  • Visible label; input is described by the issues list
  • Issues are a polite live region with text, icons aria-hidden
  • Preview is a labelled section with aria-busy while loading

Only what the source does. Test with your own screen reader and content before shipping.

What are the limitations and server boundaries?

  • Needs your server-side fetchPreview; browsers can't fetch most pages cross-origin
  • Each platform renders previews a little differently and caches them
  • Doesn't check the page content itself

What expensive mistakes does Link Unfurl Check stop?

Posted a localhost link preview

Also known as

link preview · unfurl · open graph · og image · utm · localhost · slack preview · twitter card

Field type

What dependencies does Link Unfurl Check require?

Link Unfurl Check facts & technical specifications

Technical specifications, licensing, and limitations
PropertySpecification
Component nameLink Unfurl Check
Registry identifier@bollard/link-unfurl-check
Install commandnpx shadcn@latest add @bollard/link-unfurl-check
LicenseMIT License (free, commercial-friendly)
Price$0 (100% Free and Open Source)
Version0.1.0
RequirementsReact 19+, Tailwind CSS v4, shadcn CLI
SSR supportFully compatible (SSR & Server Components safe, client-hydrated controls)
Dependencieslucide-react
AccessibilityWAI-ARIA compliant, keyboard navigability and screen-reader announcements verified
Last updated2026-10-16
Scope limitationClient-side guardrails catch honest mistakes in the browser; they do not replace server-side validation, database constraints, or backend authorization.

Frequently asked questions about Link Unfurl Check

What form validation mistake does Link Unfurl Check catch?

Link Unfurl Check prevents posted a localhost link preview. Previews how a link will unfurl before you post it and catches localhost or staging links, tracking parameters and broken preview images. Catches: localhost and staging URLs, with a swap to publicOrigin, Tracking parameters such as utm_*, Redirects, especially to a sign-in page, Missing or undersized preview images. Limitation: validate link-unfurl-check schemas on backend.

How do I install link-unfurl-check with shadcn?

Run `npx shadcn@latest add @bollard/link-unfurl-check`. Sources added: registry/default/link-unfurl-check/link-unfurl-check.tsx. Package requirements: lucide-react.

What props customize Link Unfurl Check?

Link Unfurl Check accepts `label`, `value`, `defaultValue`, `onValueChange`, `fetchPreview`. Configures link preview, unfurl, open graph behavior. Limitation: invalid prop values fallback to safe default options.

What are the limits of link-unfurl-check?

Needs your server-side fetchPreview; browsers can't fetch most pages cross-origin. Each platform renders previews a little differently and caches them. Doesn't check the page content itself Server requirement: backend verification for link-unfurl-check.

How does Link Unfurl Check meet accessibility guidelines?

Visible label; input is described by the issues list. Issues are a polite live region with text, icons aria-hidden. Preview is a labelled section with aria-busy while loading. Minimizes errors: shared localhost link, staging url posted.

Which components pair with Link Unfurl Check?