Skip to content

pantoken / formats/components/src / IconGlyphsOptions

Arayüz: IconGlyphsOptions

Beta

iconGlyphsCss için seçenekler.

Genişletir

Özellikler

prefix?

optional prefix?: string | null

Beta

Sınıf öneki. Doğru değerli bir dize her sınıfı ad alanına alır ("instui".instui-button); herhangi bir falsy değer (null, undefined, "" veya seçeneğin atlanması) öneki tamamen kaldırır (.button), böylece class="heading -h1" oluşturabilirsiniz. Bu paketle gönderilen stil sayfaları "instui" ile oluşturulmuştur.

Şuradan miras alındı

ComponentOptions.prefix


theme?

optional theme?: ComponentTheme

Beta

Üretilen CSS için hedef tema. Atlanırsa varsayılan "rebrand"'dır.

Şuradan miras alındı

ComponentOptions.theme


deprecatedAliases?

optional deprecatedAliases?: boolean

Beta

Also emit the deprecated InstUI-prop glyph aliases (-render-icon-<name>, -render-custom-icon-<name>) as functional aliases of -icon-<name>. Off by default — turning it on roughly doubles the sheet, so enable it only when you need markup written against the old renderIcon/renderCustomIcon prop names to keep rendering. The shipped icons.css is built with this on.