0.3.2 • Published 11 months ago
react-allergens-css v0.3.2
React Allergens
Ready to use SVG components of allergens for React!
Installation
Yarn
yarn add react-allergens
Usage
import { FishIcon } from 'react-allergens';
const Example = () => {
return <FishIcon />;
};
const ExampleProps = () => {
return <FishIcon width={100} height={100} wrapperStyle={{ float: 'left' }} />;
};
Props
Key | Default | Notes |
---|---|---|
width | 200px | |
height | 200px | |
innerColor | white | |
outerColor | default icon color | |
wrapperStyle | {} | Style object passed to the svg wrapper |