Skip to main content

Cursor Utilities

NuvoUI provides a comprehensive set of cursor utility classes to control how the mouse cursor appears when hovering over elements. These utilities help improve user experience by providing visual cues about element interactivity.

Configuration

The cursor utility system uses the following configurable variables:

Utility Class Generation

Parent Selector

Available Cursor Values

The cursor utility classes are generated from this comprehensive list of cursor values:

Basic Cursor Utilities

Change the cursor appearance with straightforward utility classes:

Common Use Case Examples

Interactive Elements

Text Interaction

Resize Handlers

Drag and Drop

Loading States

Zoom Controls

Direction Indicators

Special Cursors

Interactive Components

Button States

Form Elements

Cursor Utilities Reference Table

ClassCSS PropertyVisual EffectCommon Use Case
.cursor-autocursor: auto;Browser's default cursorDefault state
.cursor-pointercursor: pointer;Pointing handInteractive elements (buttons, links)
.cursor-defaultcursor: default;Default arrowNon-interactive elements
.cursor-movecursor: move;Move iconDraggable elements
.cursor-not-allowedcursor: not-allowed;Prohibited iconDisabled elements
.cursor-waitcursor: wait;Wait/hourglassLoading states
.cursor-helpcursor: help;Question markElements with help/hint info
.cursor-textcursor: text;I-beamText input areas
.cursor-cellcursor: cell;Cell selectionSpreadsheets, tables
.cursor-crosshaircursor: crosshair;CrosshairPrecise selection
.cursor-grabbingcursor: grabbing;Closed handElement being dragged
.cursor-grabcursor: grab;Open handElement can be dragged
.cursor-zoom-incursor: zoom-in;Magnifying glass +Zoom in functionality
.cursor-zoom-outcursor: zoom-out;Magnifying glass -Zoom out functionality
.cursor-nonecursor: none;No cursorHide cursor
.cursor-progresscursor: progress;Progress indicatorBackground operation running
.cursor-col-resizecursor: col-resize;Column resizeTable/grid column resizing
.cursor-row-resizecursor: row-resize;Row resizeTable/grid row resizing
.cursor-n-resizecursor: n-resize;North resizeResize from top edge
.cursor-e-resizecursor: e-resize;East resizeResize from right edge
.cursor-s-resizecursor: s-resize;South resizeResize from bottom edge
.cursor-w-resizecursor: w-resize;West resizeResize from left edge
.cursor-ne-resizecursor: ne-resize;Northeast resizeResize from top-right corner
.cursor-nw-resizecursor: nw-resize;Northwest resizeResize from top-left corner
.cursor-se-resizecursor: se-resize;Southeast resizeResize from bottom-right corner
.cursor-sw-resizecursor: sw-resize;Southwest resizeResize from bottom-left corner
.cursor-ew-resizecursor: ew-resize;East-west resizeHorizontal resizing
.cursor-ns-resizecursor: ns-resize;North-south resizeVertical resizing
.cursor-nesw-resizecursor: nesw-resize;Northeast-southwestDiagonal resizing
.cursor-nwse-resizecursor: nwse-resize;Northwest-southeastDiagonal resizing
.cursor-context-menucursor: context-menu;Context menuElement with context menu
.cursor-all-scrollcursor: all-scroll;Omnidirectional scrollScrollable in all directions

SCSS Mixins

Available Mixins

MixinDescriptionParameters
@include cursor($cursor-value)Sets the cursor for an element$cursor-value: Any valid cursor value

SCSS Usage Examples

Browser Support

The cursor utility classes use standard CSS properties that are well-supported across modern browsers. Some specialty cursors may have varying appearance across different operating systems and browsers.

Best Practices

  1. Use appropriate cursors to improve user experience and provide visual cues about element interactivity.
  2. Use .cursor-pointer for clickable elements like buttons and links.
  3. Use .cursor-not-allowed for disabled elements to indicate they cannot be interacted with.
  4. Use .cursor-text for text input areas.
  5. Use resize cursors only when the element can actually be resized in the indicated direction.
  6. Consider using .cursor-progress or .cursor-wait during loading operations.