Static

Static: React

Use a Static cursor in a React app (Vite, Create React App or similar).

A Static cursor is plain CSS, so React needs nothing special.

Generate the files

npm install --save-dev glint-cursors
npx cursor-static bold-arrow --variant light --out public/cursors

(Or download the zip from the cursor’s page and put the files in public/cursors/.)

Load the CSS once

In index.html:

<link rel="stylesheet" href="/cursors/bold-arrow-light.css">

Or put the One CSS file download (or --inline output) in src/cursors/ and import it from your entry point, so the bundler doesn’t need to resolve the SVG files:

// main.jsx
import './cursors/bold-arrow-light.css';

Opting elements in and out

<button type="button" onClick={open}>Gets the hover cursor</button>
<a href="/work" data-cursor="hover">So does this</a>
<canvas data-cursor="native" />  {/* native cursor inside */}

Use semantic, keyboard-accessible controls; data-cursor="hover" changes appearance only. Existing cursor rules can override the generated CSS, so check the result in your app.