Skip to content

pantoken / formats/components/src / IconGlyphsOptions

Інтерфейс: IconGlyphsOptions

Бета

Параметри для iconGlyphsCss.

Розширює

Властивості

prefix?

optional prefix?: string | null

Бета

Префікс класу. Істинне рядкове значення визначає простір імен для кожного класу ("instui".instui-button); будь-яке фальшиве значення (null, undefined, "" або пропуск цієї опції) повністю скидає префікс (.button), тож ви можете створювати class="heading -h1". Таблиці стилів, що постачаються з цим пакетом, побудовано з "instui".

Успадковано від

ComponentOptions.prefix


theme?

optional theme?: ComponentTheme

Бета

Цільова тема для згенерованого CSS. За замовчуванням — "rebrand", якщо опцію опущено.

Успадковано від

ComponentOptions.theme


deprecatedAliases?

optional deprecatedAliases?: boolean

Бета

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.