Skip to content

pantoken / react

react

Whakamātautau

@pantoken/react — āwhina React māmā i runga i @pantoken/web-components me te CSS tohu.

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

Ngā Atanga

Ngā Mahi

Ngā Tohutoro

register

Whakahoki anō i te register


registerLocalized

Whakahoki anō i te registerLocalized