Skip to content

pantoken / formats/components/src / IconGlyphsOptions

Schnittstelle: IconGlyphsOptions

Beta

Optionen für iconGlyphsCss.

Erweitert

Eigenschaften

prefix?

optional prefix?: string | null

Beta

Das Klassen-Präfix. Ein truthy String versieht jede Klasse mit einem Namespace ("instui".instui-button); jeder falsy Wert (null, undefined, "" oder das Weglassen der Option) entfernt das Präfix vollständig (.button), sodass Sie class="heading -h1" erstellen können. Die von diesem Paket ausgelieferten Stylesheets werden mit "instui" erstellt.

Geerbt von

ComponentOptions.prefix


theme?

optional theme?: ComponentTheme

Beta

Zielthema für das ausgegebene CSS. Standardmäßig "rebrand", wenn es weggelassen wird.

Geerbt von

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.