Skip to content

pantoken / react

react

Eksperimental

@pantoken/react — pembantu React ringan di atas @pantoken/web-components dan CSS 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.

Antarmuka

Fungsi

Referensi

register

Mengekspor ulang register


registerLocalized

Mengekspor ulang registerLocalized