[]
        
(Showing Draft Content)

GlobalCursorType

Type Alias: GlobalCursorType

type GlobalCursorType = 
  | "pointer"
  | "default"
  | "text"
  | "move"
  | "not-allowed"
  | "n-resize"
  | "e-resize"
  | "s-resize"
  | "w-resize"
  | "ne-resize"
  | "nw-resize"
  | "se-resize"
  | "sw-resize"
  | "ew-resize"
  | "ns-resize"
  | "nesw-resize"
  | "nwse-resize"
  | "rotate"
  | "grab"
  | "grabbing"
  | "zoom-in"
  | "zoom-out"
  | "wait"
  | "crosshair";

Union type representing all possible cursor styles for the application. Includes standard CSS cursor values and custom application-specific cursors.

Examples

// Type-safe cursor assignment
const resizeCursor: GlobalCursorType = 'nwse-resize';
// Function parameter typing
function setCursor(cursor: GlobalCursorType) {
  document.body.style.cursor = cursor;
}