Skip to content

pantoken / packages/core/src / collectIcons

Feidhm: collectIcons()

collectIcons(options?): IconLayer

Béite

Bailigh an tsraith deilbhín InstUI aontaithe. Tugtar tosaíocht do ghlífí saincheaptha thar ghlífí Lucide a bhfuil an t-ainm céanna acu. Sorteálann an t-aschur de réir ainm le haghaidh torthaí dheterministigh.

Paraiméadair

options?

CollectIconsOptions = {}

Tuairisceáin

IconLayer

Samplaí

Bailigh gach glíf agus na luachanna speisialta datha‑deilbhín freisin

ts
import { collectIcons } from "@pantoken/core";

const { glyphs, colors } = collectIcons();
// glyphs → IconToken[] (Custom + Lucide, name-sorted)
// colors → [["--instui-icon-color-ai", "…"], ["--instui-icon-color-inherit", "currentColor"]]

Srianigh dó go glífí a scríobh Instructure amháin

ts
import { collectIcons } from "@pantoken/core";

const { glyphs } = collectIcons({ includeLucide: false });
// → only the Custom (Instructure-authored) glyphs