Components / effect

Label Cursor

v1.0.0 · premium

A dot that turns into a text pill, such as View or Drag, over any element that carries a cursor label.

Label Cursor demo

Implementation

A dot that turns into a text pill, such as View or Drag, over any element that carries a cursor label.

Framework
React 19.3.1 with TypeScript
Motion
Native CSS and browser APIs. No GSAP required.
Available modes
build
Version
1.0.0 · published

Source code

Download source ZIP
export function CursorLabel({ children, follow = 80, ink, paper, className }: {
  children: ReactNode;
  /** Lag in milliseconds. 0 follows the pointer exactly. */

Quality evidence

Export tested in 2 consumer projects with chromium, firefox, webkit. Evidence recorded on .

Changelog

v1.0.0 · A dot that turns into a text pill, such as View or Drag, over any element that carries a cursor label.

Frequently asked questions

Where does the label text come from?

From the data-cursor-label attribute of the element under the pointer, so each target can have its own text such as View, Drag or Play.

Is the label read by screen readers?

No. The pill is decorative and hidden from assistive technology. Every target should still have its normal accessible name.