Skip to content

pantoken / formats/components/src / IconGlyphsOptions

Interface: IconGlyphsOptions

Bèta

Opties voor iconGlyphsCss.

Breidt uit

Eigenschappen

prefix?

optional prefix?: string | null

Bèta

De klasse-prefix. Een truthy string plaatst elke klasse in een namespace ("instui".instui-button); iedere falsy waarde (null, undefined, "", of het weglaten van de optie) verwijdert de prefix volledig (.button), zodat je class="heading -h1" kunt maken. De stylesheets die met dit pakket worden meegeleverd zijn gebouwd met "instui".

Geërfd van

ComponentOptions.prefix


theme?

optional theme?: ComponentTheme

Bèta

Doelthema voor de gegenereerde CSS. Standaard "rebrand" als het wordt weggelaten.

Geërfd van

ComponentOptions.theme


deprecatedAliases?

optional deprecatedAliases?: boolean

Bèta

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.