@hexazexa/react-icons-converter
TypeScript icon, indicating that this package has built-in type declarations

4.12.0 • Public • Published

@hexazexa/react-icons-converter

SVG icon converter to format required for use with react-icons package.

The source code was taken from react-icons/logics.js file and modified. The package name inspired by react-icons-converter.

¯\(ツ)

Installation

  • npm i @hexazexa/react-icons-converter

Usage example

import { GenIcon } from 'react-icons';
import { createIconTreeFromSVG } from '@hexazexa/react-icons-converter';

const SVGSource = ` /* here will be the source code of your svg icon */ `;

const IconTree = createIconTreeFromSVG(SVGSource);

export const Icon = GenIcon(IconTree);

See also

Note

This is a fork of original library react-icons-converter. The original library is no longer maintained and since it's last update there were new vulnerabilities. So I decided to fork it and fix it. There were some breaking changes in 1 library(fast-xml-parser) after upgrade, which was also taken care of in this modified fork.

Readme

Keywords

Package Sidebar

Install

npm i @hexazexa/react-icons-converter

Weekly Downloads

0

Version

4.12.0

License

ISC

Unpacked Size

15.5 kB

Total Files

7

Last publish

Collaborators

  • patelmilanun