UNPKG

@hugeicons/react-pro-demo

Version:

HugeIcons Pro React Component Library https://hugeicons.com (Demo Version)

8 lines (6 loc) 607 B
/** * @license @hugeicons/react-pro-demo v0.0.2 * * See the LICENSE file in the root directory of this source tree. */ import{forwardRef as k,createElement as a}from"react";import N from"./defaultAttributes.js";const $=(s,i)=>{const e=k(({color:c="currentColor",size:o=24,strokeWidth:n=1.5,className:d="",children:r,variant:l="stroke",type:m="rounded",...f},h)=>{const p=`${l}.${m}`,u={ref:h,...N,width:o,height:o,strokeWidth:n,color:c,className:d,...f};return a("svg",u,i[p]?.map(([y,t])=>a(y,{key:t.id,...t}))??[],...Array.isArray(r)?r:[r])});return e.displayName=`${s}Icon`,e};export{$ as default};