Cursors
Cursor utility classes for every CSS cursor value - with hover:, focus:, and active: pseudo-state variants. Also includes .disabled and :disabled cursor reset.
Cursor classes
Set the cursor style with .cursor-{name}. Hover over each box below to see the cursor in action.
Preview - hover to test
pointer
grab
move
not-allowed
wait
crosshair
text
help
zoom-in
none
<div class="cursor-pointer">Clickable</div>
<div class="cursor-grab">Draggable</div>
<div class="cursor-not-allowed">Disabled</div>
<!-- Hover variant -->
<div class="hover:cursor-pointer">Pointer on hover</div>
All cursor values
| Class | CSS value | Category |
|---|---|---|
.cursor-auto | auto | General |
.cursor-default | default | General |
.cursor-pointer | pointer | General |
.cursor-wait | wait | General |
.cursor-text | text | General |
.cursor-move | move | General |
.cursor-help | help | General |
.cursor-not-allowed | not-allowed | General |
.cursor-none | none + user-select: none | General |
.cursor-context-menu | context-menu | Interaction |
.cursor-progress | progress | Interaction |
.cursor-cell | cell | Interaction |
.cursor-crosshair | crosshair | Interaction |
.cursor-vertical-text | vertical-text | Interaction |
.cursor-alias | alias | Interaction |
.cursor-copy | copy | Interaction |
.cursor-no-drop | no-drop | Interaction |
.cursor-grab | grab | Drag |
.cursor-grabbing | grabbing | Drag |
.cursor-all-scroll | all-scroll | Drag |
.cursor-col-resize | col-resize | Resize |
.cursor-row-resize | row-resize | Resize |
.cursor-n-resize | n-resize | Resize |
.cursor-e-resize | e-resize | Resize |
.cursor-s-resize | s-resize | Resize |
.cursor-w-resize | w-resize | Resize |
.cursor-zoom-in | zoom-in | Zoom |
.cursor-zoom-out | zoom-out | Zoom |
Disabled state
The :disabled pseudo-class and .disabled class both reset the cursor to default.
<button disabled>Disabled button</button>
<div class="disabled">Disabled element</div>
Pseudo-state variants. Every cursor class supportshover:,focus:, andactive:prefixes - e.g.hover:cursor-pointeroractive:cursor-grabbing.