@inprodi/icons
v4.4.0
Published
Inprodi react icons library
Downloads
90
Maintainers
Readme
inprodi icons
Inprodi icons library.
Installation
# With yarn
yarn add @inprodi/icons
# With npm
npm install @inprodi/icons
Usage
Filled
import React from "react";
import { DiamondFilled } from "@inprodi/icons";
const App = () => {
return <DiamondFilled />;
};
export default App;
Outline
import React from "react";
import { UserOutline } from "@inprodi/icons";
const App = () => {
return <UserOutline />;
};
export default App;
Color
import React from "react";
import { WordColor } from "@inprodi/icons";
const App = () => {
return <WordColor />;
};
export default App;
Consideration
This package not pre-compile its ES modules, so you need to transpile it to avoid jest errors. To setup the jest environment, you need to create the following files.
babel.config.js
module.exports = {
presets : [
["@babel/preset-env", { targets : { node : "current" } }],
[ "@babel/preset-react", { "runtime" : "automatic" } ],
"@babel/preset-typescript",
],
};
jest.config.js
module.exports = {
verbose : true,
testEnvironment : "jsdom",
transformIgnorePatterns : [
"/node_modules/(?!(@inprodi/icons)/)",
],
};
To know about visist unexpected token erro or transformignorepatterns
License
MIT