Skip to content

pantoken / formats/components/src / IconGlyphsOptions

Giao diện: IconGlyphsOptions

Beta

Tùy chọn cho iconGlyphsCss.

Mở rộng

Thuộc tính

prefix?

optional prefix?: string | null

Beta

Tiền tố lớp. Một chuỗi truthy sẽ đặt namespace cho mọi lớp ("instui".instui-button); bất kỳ giá trị falsy nào (null, undefined, "", hoặc bỏ qua tùy chọn) sẽ loại bỏ hoàn toàn tiền tố (.button), vì vậy bạn có thể soạn thảo class="heading -h1". Các stylesheet được đóng gói cùng package này được xây dựng bằng "instui".

Kế thừa từ

ComponentOptions.prefix


theme?

optional theme?: ComponentTheme

Beta

Chủ đề đích cho CSS được xuất. Mặc định là "rebrand" khi bỏ qua.

Kế thừa từ

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.