Skip to content

pantoken / react

react

Tilrauna

@pantoken/react — létt React-hjálparbókasafn byggt ofan á @pantoken/web-components og 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.

Viðmót

Föll

Tilvísanir

register

Endurflutt register


registerLocalized

Endurflutt registerLocalized