Skip to content

pantoken / react

react

Expérimental

@pantoken/react — petites fonctions utilitaires React basées sur @pantoken/web-components et le CSS des tokens.

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

Interfaces

Fonctions

Références

register

Réexporte register


registerLocalized

Réexporte registerLocalized