0.0.3 • Published 1 year ago

react-svg-convert v0.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

SVG Convert to React Components

Version NPM Downloads NPM(https://img.shields.io/npm/dw/react-svg-convert?label=downloads npm) stars License NPM fork

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

PropTypeDefault
tagStringsvg
attrArrayempty
childObjectempty

To read more, read Document

Publisher Package