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.