Skip to content

pantoken-root / packages/core/src / getIconSvgs

Fušla: getIconSvgs() ​

getIconSvgs(tokens): Map<string, string>

Behta

Mappat buohcat ikona-tokenat dáldit-dekodeerut SVG-ii (gieldu nammasi ilman --instui-icon--prefiksii).

Parametera ​

tokens ​

readonly Token[]

Gullii / Gávdnat ​

Map<string, string>

Example ​

ts
import { buildTokens } from "@pantoken/core/build";
import { getIconSvgs } from "@pantoken/core";

const svgs = getIconSvgs(buildTokens());
svgs.get("arrow-left"); // → inline SVG markup for the arrow-left glyph (non-icon tokens skipped)