React Allergens
Ready to use SVG components of allergens for React! It's just here to fix bad build here => https://github.com/Danistc/react-allergens This repo will be removed when they are going to fix it
Installation
Yarn
yarn add react-allergens
Usage
import { FishIcon } from 'react-allergens';
const HomePage = () => {
return <FishIcon />;
};
Props
Key | Default | Notes |
---|---|---|
width |
200px |
|
height |
200px |
|
innerColor |
white |
|
outerColor |
default icon color |
|
wrapperStyle |
{} |
Style object passed to the svg wrapper |