Components/Preview Link

Preview Link

A hover card that shows a live screenshot or image preview when hovering over a link.

Tailwind CSS

Installation

pnpm dlx shadcn@latest add https://orbit.ruturaj.xyz/r/preview-link.json

Usage

import { PreviewLink } from "@/components/preview-link"

export default function Page() {
  return (
    <PreviewLink url="https://tailwindcss.com" useScreenshot>
      Tailwind CSS
    </PreviewLink>
  )
}

Examples

Screenshot

Fetches a live screenshot of the URL on hover.

Tailwind CSS