Preet Suthar

Hover Link Preview

Cards 168

About

When a user hovers over a link, a preview of the link's destination appears.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Hover Link Preview to your project and fits it to your theme.

Code

How Hover Link Preview is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import { HoverLinkPreview } from "@/components/ui/hover-link-preview"

 
const Demo: React.FC = () => (
  <div className="flex flex-col gap-12 items-center text-center">
    <div className="p-10 flex gap-1 font-medium text-xl">
      Hey, have you tried
      <HoverLinkPreview
        href="https://21st/dev/magic"
        previewImage="https://21st.dev/magic-agent-og-image.png"
        imageAlt="Example preview"
      >
        Magic MCP?
      </HoverLinkPreview>
      It's amazing!
    </div>
 
    <p>(Try hovering link)</p>
  </div>
);

export {Demo}

Dependencies

More by Preet Suthar

View all
  • Modern & Stunning sign in

    Modern & Stunning sign in

    1.8K
  • Shining Text

    Shining Text

    1.7K
  • Magic Text

    Magic Text

    922
  • Toolbar

    Toolbar

    870
  • Hero 2

    Hero 2

    865
  • Typewriter Text

    Typewriter Text

    820
  • AI Chat Input

    AI Chat Input

    792
  • Full Screen Signup

    Full Screen Signup

    776

More in Cards

View all
  • Course Design Cards

    Course Design Cards

    1.3K
  • Photo Deck

    Photo Deck

    47
  • Folded Card

    Folded Card

    45
  • Statistics Card 10

    Statistics Card 10

    304
  • Statistics Card 2

    Statistics Card 2

    309
  • Statistics Card 7

    Statistics Card 7

    336
  • CTA Section

    CTA Section

    6
  • Liquid Glass Card

    Liquid Glass Card

    198