/react-allergens

React library with ready to use allergen icons

Primary LanguageJavaScript

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

The icons

image