Skip to content

pantoken / formats/components/src / IconGlyphsOptions

Viðmót: IconGlyphsOptions

Beta

Valkostir fyrir iconGlyphsCss.

Framlengir

Eiginleikar

prefix?

optional prefix?: string | null

Beta

Forskeyti fyrir flokka. Strengur sem telst sann (truthy) setur nafnarými fyrir hvern flokk ("instui".instui-button); öll gildi sem teljast ósönn (falsy) (null, undefined, "", eða að sleppa valkostinum) fjarlægja forskeytið alfarið (.button), svo þú getir útbúið class="heading -h1". Stílafliparnir sem fylgja þessum pakka eru smíðaðir með "instui".

Erft frá

ComponentOptions.prefix


theme?

optional theme?: ComponentTheme

Beta

Markþema fyrir útflutt CSS. Sjálfgefið er "rebrand" ef það er sleppt.

Erft frá

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.