UNPKG

ivt

Version:

Ivt Components Library

3 lines (2 loc) 621 B
import*as r from"react";import*as i from"react-dom";import{createSlot as t}from"@radix-ui/react-slot";import{jsx as o}from"react/jsx-runtime";var e=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((i,e)=>{const a=t(`Primitive.${e}`),n=r.forwardRef((r,i)=>{const{asChild:t,...n}=r,m=t?a:e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),o(m,{...n,ref:i})});return n.displayName=`Primitive.${e}`,{...i,[e]:n}},{});function a(r,t){r&&i.flushSync(()=>r.dispatchEvent(t))}export{e as P,a as d}; //# sourceMappingURL=index-DiPp8h7C.mjs.map