Skip to content

    Browse components

    Halo Follow

    A soft colored glow trails the cursor inside its container and swells over interactive children.

    Open
    Customize

    Installation

    npx shadcn@latest add @glint-ui/halo-follow

    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/halo-follow.json

    Usage

    import { HaloFollow } from "@/components/ui/halo-follow";
    
    <HaloFollow className="rounded-3xl border p-10">
      <button>Hover me</button>
    </HaloFollow>

    Props

    PropTypeDefaultDescription
    childrenReactNode—Content the glow sits behind.
    colorstring"#c6ff3d"Glow color.
    sizenumber360Glow diameter in px.
    easenumber0.12Follow easing per frame; lower trails further.
    intensitynumber0.35Resting opacity.
    hoverScalenumber1.5Scale over interactive children.
    selectorstring"a,button,[data-glow]"Children that make the glow brighten.
    classNamestring—Extra classes for the root element.