Skip to content

pantoken / packages/core/src / collectIcons

Fušla: collectIcons()

collectIcons(options?): IconLayer

Behta

Gulaha InstUI:s ovttas ikonalaččat gieldda. Ráhkisvuohtain gálvvut leat čájehuvvon sama sátnedettiin Lucide-gálvvuid šaddá. Ođđašumiin leat njuolggadit nummriin, dasgo resultáhtat leat deterministalaš.

Parametera

options?

CollectIconsOptions = {}

Gullii / Gávdnat

IconLayer

Exempla

Gulaha buot gálvvut ja ikonavárvi spesálaš deaddilit

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

Rávdnet duhtavaš Instructure-omme gálvvuid maid csak

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

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