Skip to content

pantoken / formats/components/src / IconGlyphsOptions

อินเทอร์เฟซ: IconGlyphsOptions

เบต้า

ตัวเลือกสำหรับ iconGlyphsCss.

ขยาย

คุณสมบัติ

prefix?

optional prefix?: string | null

เบต้า

คำนำหน้าคลาส. สตริงที่เป็นค่าจริงจะกำหนดเนมสเปซให้กับทุกคลาส ("instui".instui-button); any ค่าที่ถือว่าเป็นเท็จ (null, undefined, "", or omitting the option) จะทำให้คำนำหน้าเลิกใช้ทั้งหมด (.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.