Skip to content

pantoken / formats/components/src / IconGlyphsOptions

介面: IconGlyphsOptions

Beta(測試)

針對 iconGlyphsCss 的選項。

擴充自

屬性

prefix?

optional prefix?: string | null

Beta(測試)

類別前綴。任何真值字串會為所有類別加入命名空間("instui".instui-button);任何 假值(nullundefined"",或省略該選項)會完全移除前綴 (.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.