Skip to content

pantoken / packages/core/src / collectIcons

Fall: collectIcons()

collectIcons(options?): IconLayer

Beta

Safna sameinuðu InstUI-táknalaginu. Sérstök tákn (custom glyphs) hafa forgang fram yfir Lucide\nglyphs með sama nafni. Úttakið er raðað eftir nafni til að tryggja stöðugar og endurtekanlegar niðurstöður.

Færibreytur

options?

CollectIconsOptions = {}

Skilar

IconLayer

Dæmi

Safna öllum táknum auk sérstöku icon-colour-gildanna

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

Takmarka við einungis tákn sem Instructure hefur samið

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

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