Skip to content

pantoken / packages/core/src / getIconSvgs

Fonksiyon: getIconSvgs()

getIconSvgs(tokens): Map<string, string>

Beta

Her ikon token'ını çözülmüş SVG'sine eşleyin (anahtarlar --instui-icon- öneki olmadan isimlere göre).

Parametreler

tokens

salt okunur Token[]

Döndürür

Map<string, string>

Örnek

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)