Skip to content

pantoken-root / react

react ​

Compatibility ​

Target: React. Current format: SSR-rendered Icon custom element and token fallback. Minimum host version: 19.3.0. Tested through 19.3.0. Newer releases require review.

Full compatibility matrix

تجربی

@pantoken/react — ابزارهای کمکی سبک برای React بر پایه @pantoken/web-components و 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.

رابط‌ها ​

توابع ​

ارجاعات ​

register ​

دوباره صادر می‌کند register


registerLocalized ​

دوباره صادر می‌کند registerLocalized