Skip to content

pantoken / packages/core/src / collectIcons

Fonksyon: collectIcons()

collectIcons(options?): IconLayer

Beta

Rasanble kouch ikon InstUI ini a. Glif pèsonalize gen priyorite sou glif Lucide ki gen menm non an. Sòti a klase pa non pou rezilta detèministik.

Paramèt

options?

CollectIconsOptions = {}

Retounen

IconLayer

Egzanp

Rasanble chak glif ansanm ak valè espesyal icon-colour yo

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

Limite a sèlman glif ki ekri pa Instructure

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

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