Skip to content

pantoken / packages/core/src / collectIcons

Fonksiyon: collectIcons()

collectIcons(options?): IconLayer

Beta

Birleştirilmiş InstUI simge katmanını topla. Özel glifler, aynı ada sahip Lucide\ngliflerine üstünlük sağlar. Çıktı deterministik sonuçlar için ada göre sıralanır.

Parametreler

options?

CollectIconsOptions = {}

Döndürür

IconLayer

Örnekler

Her glifi ve simge-renk özel değerlerini topla

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

Sadece Instructure tarafından oluşturulan gliflerle sınırla

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

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