Skip to content

pantoken / react

react

ทดลอง

@pantoken/react — ตัวช่วย React ขนาดเล็กที่ใช้งานร่วมกับ @pantoken/web-components และ CSS ของโทเค็น

  • <Icon> renders the <instui-icon> custom element (React 19 passes props to custom elements).
  • useToken reads a resolved --instui-* value at runtime (SSR-safe: returns the fallback on the server).
  • <TokenProvider> registers the elements and is where an app can inject the stylesheet.

อินเทอร์เฟซ

ฟังก์ชัน

การอ้างอิง

register

ส่งออกซ้ำ register


registerLocalized

ส่งออกซ้ำ registerLocalized