Skip to content
0

Cursor ​

Set the mouse cursor style when hovering over an element.

Quick Reference ​

ClassProperties
.cursor-autocursor: auto
.cursor-defaultcursor: default
.cursor-pointercursor: pointer
.cursor-waitcursor: wait
.cursor-textcursor: text
.cursor-movecursor: move
.cursor-helpcursor: help
.cursor-not-allowedcursor: not-allowed
.cursor-nonecursor: none
.cursor-context-menucursor: context-menu
.cursor-progresscursor: progress
.cursor-cellcursor: cell
.cursor-crosshaircursor: crosshair
.cursor-vertical-textcursor: vertical-text
.cursor-aliascursor: alias
.cursor-copycursor: copy
.cursor-no-dropcursor: no-drop
.cursor-grabcursor: grab
.cursor-grabbingcursor: grabbing
.cursor-all-scrollcursor: all-scroll
.cursor-zoom-incursor: zoom-in
.cursor-zoom-outcursor: zoom-out

Basic Usage ​

html
<!-- Clickable element -->
<button class="cursor-pointer">Click me</button>

<!-- Disabled button -->
<button class="cursor-not-allowed opacity-50" disabled>Disabled</button>

<!-- Draggable element -->
<div class="cursor-grab">Drag me</div>

<!-- Text input -->
<input class="cursor-text" type="text" />

SCSS Source ​

scss
// From _utilities.scss — $cursor-list
$cursor-list: (
  auto, default, pointer, wait, text, move, help, not-allowed,
  none, context-menu, progress, cell, crosshair, vertical-text,
  alias, copy, no-drop, grab, grabbing, all-scroll, zoom-in, zoom-out
) !default;

Released under the MIT License.