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