Skip to content

pantoken / react

react

Thử nghiệm

@pantoken/react — các helper React gọn nhẹ xây trên @pantoken/web-components và CSS của token.

  • <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.

Giao diện

Hàm

Tham chiếu

register

Xuất lại register


registerLocalized

Xuất lại registerLocalized