Skip to content

pantoken / formats/components/src / ComponentOptions

接口: ComponentOptions

Beta

每个构建器共有的选项。

Extended by

属性

prefix?

optional prefix?: string | null

Beta

类前缀。一个为真字符串会为每个类添加命名空间("instui".instui-button);任何为假值(null, undefined, "", 或省略该选项)会完全去掉前缀(.button),因此你可以编写 class="heading -h1"。此包随附的样式表是使用 "instui" 构建的。


theme?

optional theme?: ComponentTheme

Beta

用于生成 CSS 的目标主题。省略时默认为 "rebrand"