Dot

Simple custom dot cursor with smooth following animation

$ npx @hritik-sharmaa/repeat-ui add cursor-dot
Category
Cursor
Added
Sep 12, 2025
Version
2.0.0
Packages
None
Flavors
TS · JS · Tailwind · CSS
Live preview

Move the cursor

Customize
24px
0.15
2.5×
import CursorDot from "@/components/repeat-ui/cursor-dot/preview";

<CursorDot />

Installation

  1. Run the command

    Adds the files and installs any packages they need. Works with npm, pnpm, yarn and bun.

    $ npx @hritik-sharmaa/repeat-ui add cursor-dot --variant ts-tailwind
  2. Use it

    The files are in components/repeat-ui/cursor-dot/.

    import CursorDot from "@/components/repeat-ui/cursor-dot/preview";
    
    export default function Page() {
      return <CursorDot />;
    }

Props

PropTypeDefaultDescription
sizenumber24Dot diameter in pixels.
colorstring"#ffffff"Dot colour. With blend on, white inverts whatever is underneath.
smoothnessnumber0.15How quickly the dot catches up, from 0 (never) to 1 (instantly).
hoverScalenumber2.5How much the dot grows over links and buttons.
blendbooleantrueUse mix-blend-mode: difference, so the dot inverts what it covers.
hideCursorbooleanfalseHide the system cursor on the whole page.

More cursor

See all

Custom cursor with trailing effect and line following cursor