Skip to content

pantoken / formats/components/src / IconGlyphsOptions

Διεπαφή: IconGlyphsOptions

Βήτα

Επιλογές για iconGlyphsCss.

Επεκτείνει

Ιδιότητες

prefix?

optional prefix?: string | null

Βήτα

Το πρόθεμα κλάσης. Μια truthy συμβολοσειρά τοποθετεί κάθε κλάση σε namespace ("instui".instui-button): οποιαδήποτε falsy τιμή (null, undefined, "", ή η παράλειψη της επιλογής) αφαιρεί εντελώς το πρόθεμα (.button), έτσι μπορείτε να γράψετε class="heading -h1". Τα stylesheets που περιλαμβάνονται σε αυτό το πακέτο είναι δημιουργημένα με "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.