Skip to content

pantoken / packages/core/src / getIconSvgs

Mahi: getIconSvgs()

getIconSvgs(tokens): Map<string, string>

Beta

Maherehia ia tohu ata ki tana SVG kua wetewetea (mā te ingoa, me te kore o te --instui-icon- tuhinga tīmatanga).

Ngā Tawhā

tokens

panui-anake Token[]

Whakahokia

Map<string, string>

Tauira

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)