Skip to content

pantoken / formats/components/src / IconGlyphsOptions

Interfaccia: IconGlyphsOptions

Beta

Opzioni per iconGlyphsCss.

Estende

Proprietà

prefix?

optional prefix?: string | null

Beta

Il prefisso della classe. Una stringa truthy definisce uno spazio dei nomi per ogni classe ("instui".instui-button); qualsiasi valore falsy (null, undefined, "" o omettendo l'opzione) rimuove completamente il prefisso (.button), così puoi scrivere class="heading -h1". I fogli di stile forniti con questo pacchetto sono costruiti con "instui".

Ereditato da

ComponentOptions.prefix


theme?

optional theme?: ComponentTheme

Beta

Tema di destinazione per il CSS emesso. Predefinito a "rebrand" se omesso.

Ereditato da

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.