Icon
VERSION2.3.0
LICENSEMIT
CONFIG5 Options
Renders a static SVG icon at the cursor position.
Installation
pnpm add @supermousejs/iconUsage
app.use(Icon({ svg: '<svg>...</svg>', size: 24 }));Configuration
* Reactive Property| Option | Type | Default | Description |
|---|---|---|---|
| svg | string | undefined | SVG content string. (Required) |
| size * | number | 24 | Size of the icon container. |
| color * | string | 'black' | CSS color (currentColor). |
| opacity * | number | 1 | Opacity level (0-1). |
| offset | [number, number] | [0, 0] | Fixed [x, y] offset from cursor center. |