Skip to content

pantoken-root / packages/core/src / getIconSvgs

Fonksyon: getIconSvgs() ​

getIconSvgs(tokens): Map<string, string>

Beta

Mape chak token ikon ak SVG li dekode (kle pa non san prefiks --instui-icon-).

Paramèt ​

tokens ​

sèlman lekti Token[]

Retounen ​

Map<string, string>

Egzanp ​

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)