Docs / Cursor

Cursor

vel-src: interactivity.css

Utilities for controlling the cursor style.

ClassProperties
vel-cursor-autocursor: auto
vel-cursor-defaultcursor: default
vel-cursor-pointercursor: pointer
vel-cursor-waitcursor: wait
vel-cursor-textcursor: text
vel-cursor-movecursor: move
vel-cursor-helpcursor: help
vel-cursor-not-allowedcursor: not-allowed
vel-cursor-grabcursor: grab
vel-cursor-grabbingcursor: grabbing
vel-cursor-crosshaircursor: crosshair
vel-cursor-zoom-incursor: zoom-in
vel-cursor-zoom-outcursor: zoom-out
vel-cursor-nonecursor: none

Examples

Pointer cursor on interactive element

example.html
<button class="vel-cursor-pointer vel-btn vel-btn-primary">
  Click me
</button>

Disabled state with not-allowed cursor

example.html
<button class="vel-cursor-not-allowed vel-btn vel-btn-outline-primary vel-opacity-50" disabled>
  Disabled
</button>

Grab cursor for draggable items

Drag me
example.html
<div class="vel-cursor-grab vel-bg-surface-1 vel-text-base vel-rounded-lg vel-inline-block" style="padding:1rem;border:1px solid #1e2d45">
  Drag me
</div>