Skip to content

pantoken / react

react

实验性

@pantoken/react — 基于 @pantoken/web-components 和 token CSS 的轻量 React 辅助工具。

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