Skip to content

pantoken / custom-components

custom-components

बीटा

@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