0.0.3 • Published 1 year ago
react-svg-convert v0.0.3
SVG Convert to React Components
(https://img.shields.io/npm/dw/react-svg-convert?label=downloads npm)
Installation
npm i react-svg-convert
or
yarn add react-svg-convert
Usage
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",
},
},
]}
/>
Available props
Prop | Type | Default |
---|---|---|
tag | String | svg |
attr | Array | empty |
child | Object | empty |
To read more, read Document