Skip to content

pantoken / custom-components

custom-components

Beta(測試)

@pantoken/plugin-custom-components — 供下游使用者的自訂元件。

範例

ts
import { toCss } from "@pantoken/css";
import { byTheme } from "@pantoken/tokens";
import { customComponents } from "@pantoken/plugin-custom-components";

const css = toCss(byTheme("rebrand"), { plugins: [customComponents()] });
// appends all custom-component rules to the token sheet

介面

函式

參考

default

重新命名並重新匯出 customComponents