Skip to content

pantoken / packages/core/src / collectIcons

Functie: collectIcons()

collectIcons(options?): IconLayer

Bèta

Verzamel de eendrachtige InstUI-pictogramlaag. Aangepaste glyfen hebben voorrang boven Lucide\nglyfen. De uitvoer is op naam gesorteerd voor deterministische resultaten.

Parameters

options?

CollectIconsOptions = {}

Retourneert

IconLayer

Voorbeelden

Verzamel elke glyf plus de speciale waarden voor pictogramkleur

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

Beperk tot alleen door Instructure gemaakte glyfen

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

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