Skip to content

pantoken / packages/core/src / collectIcons

Mahi: collectIcons()

collectIcons(options?): IconLayer

Beta

Kohikohi te paparanga tohu kotahi o InstUI. Ka whai tūnga ngā tohu kua whakaritea ki mua i ngā tohu Lucide e rite ana te ingoa. Kei te whakarārangi te putanga mā te ingoa kia puta ngā hua e taea te matapae.

Ngā Tawhā

options?

CollectIconsOptions = {}

Whakahokia

IconLayer

Ngā tauira

Kohikohi ia tohu katoa me ngā uara motuhake ā-tae o te tohu

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"]]

Whakarāpopoto ki ngā tohu i tuhia e Instructure anake

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

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