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