@supermousejs/icon
v2.2.0
Published
Renders a static SVG icon at the cursor position. Useful for custom pointers.
Readme
@supermousejs/icon
Renders a static SVG icon at the cursor position. Useful for custom pointers.
Installation
pnpm add @supermousejs/iconUsage
import { Supermouse } from "@supermousejs/core";
import { Icon } from "@supermousejs/icon";
const app = new Supermouse();
app.use(
Icon({
svg: "<svg>...</svg>", // Your SVG string
size: 24,
color: "black"
})
);Documentation
Full documentation and interactive playground available at supermouse or check out the repo.
