Skip to content

dsanchez07/react-allergens

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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