Log inGet started

cursor

Updated 14 August 2026

The cursor namespace — 2 functions.

cursor/clear

cursor.clear()

Reset the cursor to its default appearance.

cursor/set

cursor.set(spec) -> boolean

Set the cursor appearance from a spec table. Supports icon, color, and other cursor properties.

Parameters

  • spec { icon?: string, color?: string, ... } — Cursor specification table

Returns boolean — true if cursor was set

  • api
  • reference