Skip to content

pantoken / formats/components/src / IconGlyphsOptions

接口: IconGlyphsOptions

Beta

用于 iconGlyphsCss 的选项。

扩展

属性

prefix?

optional prefix?: string | null

Beta

类前缀。一个为真字符串会为每个类添加命名空间("instui".instui-button);任何为假值(null, undefined, "", 或省略该选项)会完全去掉前缀(.button),因此你可以编写 class="heading -h1"。此包随附的样式表是使用 "instui" 构建的。

继承自

ComponentOptions.prefix


theme?

optional theme?: ComponentTheme

Beta

用于生成 CSS 的目标主题。省略时默认为 "rebrand"

继承自

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.