Skip to content

    Browse components

    Hyperlink

    An inline link whose underline draws in from the left and exits to the right, with a springy arrow nudge and a hover or focus preview card for the destination.

    Open
    Customize

    Installation

    npx shadcn@latest add @glint-ui/hyperlink

    First time using @glint-ui? Add the registry to components.json once, or install by URL: npx shadcn@latest add https://glintui.vercel.app/r/hyperlink.json

    Usage

    import { Hyperlink } from "@/components/ui/hyperlink";
    
    <Hyperlink href="https://nextjs.org" previewTitle="Next.js" previewDescription="The React framework.">
      Next.js
    </Hyperlink>

    Props

    PropTypeDefaultDescription
    hrefstring"https://nextjs.org"Destination. http(s) links open in a new tab and show the arrow.
    previewTitlestring"Next.js by Vercel"Preview card headline. Omit title and description for no card.
    previewDescriptionstring"The React framework for the web: routing, rendering and bundling out of the box."Preview card body.
    colorstring"currentColor"Underline and arrow CSS color.
    arrowReactNode—Boolean. Show the nudging arrow; defaults to true for http(s) links.
    delaynumber250Ms of hover before the card opens.
    childrenReactNode—Link text.
    classNamestring—Extra classes for the root element.