Ready to use SVG components of allergens for React!
yarn add react-allergens
import { FishIcon } from 'react-allergens';
const Example = () => {
return <FishIcon />;
};
const ExampleProps = () => {
return <FishIcon width={100} height={100} wrapperStyle={{ float: 'left' }} />;
};
Key | Default | Notes |
---|---|---|
width |
200px |
|
height |
200px |
|
innerColor |
white |
|
outerColor |
default icon color |
|
wrapperStyle |
{} |
Style object passed to the svg wrapper |