Skip to content

pantoken / formats/components/src / IconGlyphsOptions

Rhyngwyneb: IconGlyphsOptions

Bêta

Dewisiadau ar gyfer iconGlyphsCss.

Yn estyn

Eiddo

prefix?

optional prefix?: string | null

Bêta

Rhagddodiad dosbarth. Mae llinyn gwirion yn rhoi gofod enwau i bob dosbarth ("instui".instui-button); bydd unrhyw werth anghywir (null, undefined, "", neu os caiff y dewis ei hepgor) yn tynnu'r rhagddodiad yn gyfan gwbl (.button), felly gallwch greu class="heading -h1". Mae'r taflenni steil a anfonir gyda'r pecyn hwn wedi'u hadeiladu gyda "instui".

Etifeddwyd oddi wrth

ComponentOptions.prefix


theme?

optional theme?: ComponentTheme

Bêta

Thema darged ar gyfer y CSS a anfonir. Yn ddiofyn mae'n "rebrand" pan gaiff ei hepgor.

Etifeddwyd oddi wrth

ComponentOptions.theme


deprecatedAliases?

optional deprecatedAliases?: boolean

Bêta

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.