npm i react-svg-convert
or
yarn add react-svg-convert
To read more, read Document
import SvgConvert from "react-svg-convert";
<SvgConvert
attr={{
viewBox: "0 0 24 24",
}}
child={[
{
tag: "path",
attr: {
d: "M6.25 8C6.25 7.58579....",
fill: "currentColor",
fillRule: "evenodd",
clipRule: "evenodd",
},
},
]}
/>
Prop | Type | Default |
---|---|---|
tag |
String |
svg |
attr |
Array |
empty |
child |
Object |
empty |
To read more, read Document