Custom Cursor

A dot and trailing ring that grows over links and can show labels.

gsapMIT · free

Installation

npx shadcn@latest add https://ombakui.com/r/custom-cursor.json

Usage

// app/layout.tsx
import { CustomCursor } from "@/components/custom-cursor";

<body>
  {children}
  <CustomCursor />
</body>

// anywhere: show a label inside the cursor
<a href="/case" data-cursor-label="View">…</a>

Props

PropTypeDefaultDescription
colorstring"#ffffff"Cursor color.
sizenumber36Ring diameter in px.
hoverSizenumber64Ring diameter over links, buttons and [data-cursor].
labelSizenumber92Diameter over an element with data-cursor-label.
blendbooleantrueInvert against the page using mix-blend-mode: difference.
hideNativebooleanfalseHide the system cursor.
hoverSelectorstring"a, button, [data-cursor]"Elements that make the ring grow.