Skip to content

pantoken / formats/components/src / IconGlyphsOptions

ממשק: IconGlyphsOptions

בטא

אפשרויות עבור iconGlyphsCss.

מאריך

תכונות

prefix?

optional prefix?: string | null

בטא

הקידומת של המחלקה. מחרוזת אמת (truthy) יוצרת מרחב שמות לכל מחלקה ("instui".instui-button); כל ערך שקרי (falsy) (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.