Component packs › Caret › Morph Cursor

Morph Cursor

The dot springs into the exact shape and corner radius of whatever you point at, as a soft highlight behind it, and the element leans toward your hand.

Morph Cursor is a cursor from Caret, a component pack with 6 cursors: Custom cursors that read what they are over and turn into its tool. Price: $2 for the whole pack.

Built with: shape and radius from the target, magnetic lean, follows keyboard focus.

Code: React and Next.js (TypeScript), Vue 3, plain HTML/CSS/JS, Tailwind CSS v4 and Motion (motion.dev). No npm packages needed. Keyboard accessible, with a reduced-motion version, in dark and light.

Morph Cursor props

PropTypeDefaultDescription
htmlstringan editor toolbarYour own content (HTML); mark targets with data-morph. Default: an editor toolbar.
heightnumber240Area height in px. Default 240.
darkboolean
autoplaynumber | falseShowcase mode: a virtual pointer visits each target every N ms.

Methods on the ref

Use it in React

import MorphCursor from './MorphCursor';

<MorphCursor />

The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.

More in Caret

Good for: Custom cursors.