@balajmarius/svg2jsx
TypeScript icon, indicating that this package has built-in type declarations

2.0.3 • Public • Published

svg2jsx 🌜

Transform SVG into valid JSX

transform(svg, config)

Parameters

  • svg String The SVG string to be transformed
  • config Map
    • type functional | class The type of the resulting component
    • jsxSingleQuote Boolean Either double or single quotes in JSX attributes

Returns

Promise<String> JSX string

Readme

Keywords

none

Package Sidebar

Install

npm i @balajmarius/svg2jsx

Weekly Downloads

88

Version

2.0.3

License

MIT

Unpacked Size

8.33 kB

Total Files

9

Last publish

Collaborators

  • balajmarius