Cursor · lib · 11K

Cursors

Original 1-bit mouse pointers with white outlines and hotspots: arrow, I-beam, crosshair, open and closed hand, and an 8-frame pocket-watch busy cursor. cursorCss(name) gives a ready CSS cursor value with a built-in fallback; useBusyCursor(active) animates the watch on the page or one element, sets aria-busy and stands still under reduced motion. <Cursor> previews a pointer.

Install

pnpm dlx shadcn@latest add @s7ui/cursors

Example

This example also uses @s7ui/button.

  • Arrow
  • I-beam
  • Crosshair
  • Open hand
  • Closed hand
  • Busy

Point at a tile to try its cursor.

Busy frames

Idle.

Info

Files:
lib/cursors.ts, hooks/use-busy-cursor.ts
Uses:
—
Packages:
—