Skip to content

pantoken / formats/components/src / IconGlyphsOptions

Interfejs: IconGlyphsOptions

Beta

Opcje dla iconGlyphsCss.

Rozszerza

Właściwości

prefix?

optional prefix?: string | null

Beta

Prefiks klas. Ciąg znaków będący wartością 'truthy' umieszcza każdą klasę w przestrzeni nazw ("instui".instui-button); każda wartość 'falsy' (null, undefined, "" lub pominięcie opcji) usuwa prefiks całkowicie (.button), dzięki czemu można tworzyć class="heading -h1". Arkusze stylów dołączone do tego pakietu są zbudowane z użyciem "instui".

Dziedziczone z

ComponentOptions.prefix


theme?

optional theme?: ComponentTheme

Beta

Docelowy motyw dla wygenerowanego CSS. Domyślnie "rebrand" w przypadku pominięcia.

Dziedziczone z

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.