Skip to content

    Browse components

    Pull Hover

    Pulls its children toward the cursor when it gets close.

    Hover near me
    Open
    Customize

    Installation

    npx shadcn@latest add @glint-ui/pull-hover

    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/pull-hover.json

    Usage

    import { PullHover } from "@/components/ui/pull-hover";
    
    <PullHover padding={80}>
      <button>Hover near me</button>
    </PullHover>

    Props

    PropTypeDefaultDescription
    childrenReactNode—Content to attract.
    paddingnumber80Extra px around the element where the pull starts.
    strengthnumber3Higher is weaker: offset = distance / strength.
    classNamestring—Extra classes for the root element.