Skip to content

pantoken / packages/core/src / getIconSvgs

Függvény: getIconSvgs()

getIconSvgs(tokens): Map<string, string>

Béta

Képezze le az egyes ikon tokeneket dekódolt SVG-jükre (a --instui-icon- előtag nélkül név alapján).

Paraméterek

tokens

csak olvasható Token[]

Visszatérés

Map<string, string>

Példa

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

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