Skip to content

    Browse components

    Hairline Coords

    Full-bleed crosshair lines with live coordinates that tear and glitch when you hover a link.

    Open
    Customize

    Installation

    npx shadcn@latest add @glint-ui/hairline-coords

    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/hairline-coords.json

    Usage

    import { HairlineCoords } from "@/components/ui/hairline-coords";
    
    <HairlineCoords className="h-screen">
      <nav>...</nav>
    </HairlineCoords>

    Props

    PropTypeDefaultDescription
    childrenReactNode—Content under the crosshair.
    colorstring"#ffffff"Line and label color.
    thicknessnumber1Line width in px.
    showCoordsbooleantrueShow live x/y readouts on the lines.
    glitchbooleantrueDistort the lines briefly when the pointer enters a target.
    targetSelectorstring"a, button"Elements that trigger the glitch.
    hideCursorbooleantrueHide the native cursor inside the container.
    classNamestring—Extra classes for the root element.