Skip to content

pantoken / formats/components/src / IconGlyphsOptions

Entèfas: IconGlyphsOptions

Beta

Opsyon pou iconGlyphsCss.

Elaji

Pwopriyete

prefix?

optional prefix?: string | null

Beta

Prefiks klas la. Yon chenn ki evalye kòm vérité mete chak klas nan yon namespace ("instui".instui-button); nenpòt valè ki evalye kòm falsy (null, undefined, "", oswa lè yo pa bay opsyon an) retire prefiks la nèt (.button), konsa ou ka ekri class="heading -h1". Fèy stil ki vini ak pake sa a yo konstwi ak "instui".

Eritye soti nan

ComponentOptions.prefix


theme?

optional theme?: ComponentTheme

Beta

Tèm sib pou CSS ki pibliye. Li itilize "rebrand" kòm valè pa defo lè yo omèt li.

Eritye soti nan

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.