Something went wrong. Try again.
Starship Simulator Controls thoriumsim.com
Something went wrong. Try again.
338 B · 5 lines
TypeScript
at develop
123456const cursorList = ["default", "pointer", "text", "progress", "not-allowed", "wait"] as const;export function setCursor(cursor: (typeof cursorList)[number] | "auto" = "auto") { cursorList.forEach((c) => document.body.classList.remove(`cursor-${c}`)); if (cursor && cursor !== "auto") document.body.classList.add(`cursor-${cursor}`);}