@relu-interactives/spatial-ecs
@relu-interactives/spatial-ecs / index / uiIconSvg
Function: uiIconSvg() ​
ts
function uiIconSvg(name, strokeWidth?): string | null;Defined in: ui/uiIcons.ts:26
The icon as a standalone SVG document, white so a tint can recolour it. strokeWidth is in the 24-unit view box: 2 is Tabler's own, 1.5 reads lighter, 2.5 bolder.
Parameters ​
| Parameter | Type | Default value |
|---|---|---|
name | string | undefined |
strokeWidth | number | 2 |
Returns ​
string | null

