@central-icons-react/square-outlined-radius-0-stroke-2
Version:
A collection of square outlined React icons with 0px radius and 2px stroke width, designed for use in React applications.
4 lines (2 loc) • 1.2 kB
JavaScript
import r from"react";var i=({children:o,size:e=24,ariaLabel:l,color:a,ariaHidden:n=!0,style:m,mode:p="masked",maskId:s,...g})=>{let c=p!=="raw"&&!!s;return r.createElement("svg",{...g,"aria-hidden":n,role:n?void 0:"img",width:typeof e==="number"?`${e}px`:e,height:typeof e==="number"?`${e}px`:e,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{color:a,...m}},l&&!n&&r.createElement("title",null,l),c?r.createElement(r.Fragment,null,r.createElement("mask",{id:s,maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24"},r.createElement("rect",{width:"24",height:"24",fill:"#000"}),r.createElement("g",{fill:"none",style:{color:"#fff"}},o)),r.createElement("rect",{width:"24",height:"24",fill:"currentColor",mask:`url(#${s})`})):o)};import t from"react";var h=t.memo((o)=>{return t.createElement(i,{...o,ariaLabel:"toggle, settings, control",maskId:"square-outlined-radius-0-stroke-2-IconToggle"},t.createElement("rect",{x:"1.5",y:"5",width:"21",height:"14",rx:"7",stroke:"currentColor",strokeWidth:"2"}),t.createElement("circle",{cx:"8.5",cy:"12",r:"3",fill:"currentColor"}))}),C=h;export{C as default,h as IconToggle};
//# debugId=E28715F3B819812764756E2164756E21