Skip to content

Conversation

@Ahmed-aleryani
Copy link

@Ahmed-aleryani Ahmed-aleryani commented Jan 12, 2026

Summary

Adds comprehensive visual examples for all 38 cursor utility classes, organized into logical categories for easier understanding.

Changes

Added 5 new example sections showcasing all cursor types:

  • Interactive cursors (5 types): pointer, help, context-menu, progress, wait
  • Selection cursors (5 types): default, text, vertical-text, crosshair, cell
  • Drag & drop cursors (6 types): grab, grabbing, move, copy, alias, no-drop
  • Resize cursors (15 types): All directional (n, e, s, w, ne, nw, se, sw) and bi-directional variants (ew, ns, nesw, nwse, col-resize, row-resize, all-scroll)
  • Zoom and state cursors (5 types): zoom-in, zoom-out, not-allowed, auto, none

Issue

Closes #2267

Testing

✅ Verified locally on development server
✅ All 38 cursor types render correctly in interactive grids
✅ Hover interactions work on all boxes
✅ Grid layouts are responsive (2-col mobile, 3-4 col desktop)
✅ Dark mode compatibility confirmed
✅ Hover hints guide users to test each cursor
✅ Code snippets include proper syntax highlighting

Before

Only 3 cursor types had visual examples (pointer, progress, not-allowed). Users couldn't see what the other 35 cursor types looked like.

After

All 38 cursor utilities now have visual examples organized by category, making it easy for developers to:

  • See what each cursor looks like
  • Understand cursor categories and use cases
  • Choose the right cursor for their needs
  • Test cursor behavior by hovering over labeled boxes

Each section follows the established documentation pattern with interactive examples, code snippets, and helpful hints.

@vercel
Copy link

vercel bot commented Jan 12, 2026

@Ahmed-aleryani is attempting to deploy a commit to the Tailwind Labs Team on Vercel.

A member of the Team first needs to authorize it.

Add visual examples organized by category showing all 38 cursor utilities:
- Interactive cursors (pointer, help, context-menu, progress, wait)
- Selection cursors (default, text, vertical-text, crosshair, cell)
- Drag & drop cursors (grab, grabbing, move, copy, alias, no-drop)
- Resize cursors (all directional and bi-directional variants)
- Zoom and state cursors (zoom-in, zoom-out, not-allowed, auto, none)

Fixes tailwindlabs#2267
@Ahmed-aleryani Ahmed-aleryani force-pushed the add-cursor-visual-examples branch from ee061cc to fc91c62 Compare January 12, 2026 00:44
@Ahmed-aleryani
Copy link
Author

@thecrypticace This is a larger PR adding examples for all cursor types. Happy to adjust the organization if you have preferences. Thanks!

@Ahmed-aleryani
Copy link
Author

@adamwathan Small UX/UI improvement by adding cursor examples similar to v3 documentation

V3 cursor docs

Notice it shows how cursor looks like

image

V4.1 is missing cursor illustration examples

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cursor Docs don't show cursor types like ? unlike v3 Docs which show them visually

1 participant