Skip to content

    Browse components

    Print Dots

    Renders an image as breathing halftone dots that swell and melt into the full photo around the cursor.

    Hover the image to develop it

    Open
    Customize

    Installation

    npx shadcn@latest add @glint-ui/print-dots

    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/print-dots.json

    Usage

    import { PrintDots } from "@/components/ui/print-dots";
    
    <PrintDots src="/photo.jpg" alt="Harbor at dusk" className="h-96 w-full rounded-3xl" />

    Props

    PropTypeDefaultDescription
    srcstring"https://picsum.photos/seed/glint-2/1400/900"Image URL (CORS-enabled).
    altstring"Halftone photo"Accessible description of the image.
    cellSizenumber11Halftone cell size in px.
    radiusnumber170Reveal radius around the cursor in px.
    coloredbooleantrueDots take the image colors.
    dotColorstring"#c6ff3d"Dot color when colored is off.
    classNamestring—Extra classes for the root element.