react-svg-convert
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published

SVG Convert to React Components

Version NPM 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

Prop Type Default
tag String svg
attr Array empty
child Object empty

To read more, read Document

Publisher Package

Package Sidebar

Install

npm i react-svg-convert

Weekly Downloads

3

Version

0.0.3

License

MIT

Unpacked Size

5.39 kB

Total Files

6

Last publish

Collaborators

  • mohmad_dorqi
  • peymanath