Skip to content

pantoken / react

react

Eksperimentalno

@pantoken/react — lahki React pripomočki nad @pantoken/web-components in token CSS.

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

Vmesniki

Funkcije

Sklici

register

Znova izvozi register


registerLocalized

Znova izvozi registerLocalized