Skip to content

pantoken / formats/components/src / IconGlyphsOptions

Antaramuka: IconGlyphsOptions

Beta

Pilihan untuk iconGlyphsCss.

Melanjutkan

Sifat

prefix?

optional prefix?: string | null

Beta

Prefix kelas. Rentetan truthy memberi ruang nama kepada setiap kelas ("instui".instui-button); sebarang nilai falsy (null, undefined, "", atau mengabaikan pilihan) akan membuang prefix sepenuhnya (.button), jadi anda boleh menulis class="heading -h1". Helaian gaya yang dibekalkan oleh pakej ini dibina dengan "instui".

Diwarisi daripada

ComponentOptions.prefix


theme?

optional theme?: ComponentTheme

Beta

Tema sasaran untuk CSS yang dihasilkan. Lalai kepada "rebrand" apabila diabaikan.

Diwarisi daripada

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.