Skip to content

pantoken / custom-components

custom-components

Βήτα

@pantoken/plugin-custom-components — προσαρμοσμένα components για downstream καταναλωτές.

Παράδειγμα

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