This package contains an <Icon/>
component which can be provided with a type
prop and a color
prop.
In this package the type corresponds to what type of icon you need. For example <Icon type="Star"/>
would produce a playful hand-drawn star as a react component.
The available types are shown at the bottom.
The color prop corresponds to the desired stroke colour of the icon. This prop take any type of color object.
For example, for a yellow star component, the react component could be;
-
<Icon type="Star" color="#FFFF00"/>
-
<Icon type="Star" color="rgb(255, 255, 0)"/>
-
<Icon type="Star" color="rgba(255, 255, 0, 1)"/>
These max size props do exactly the same as setting a max-width
and max-height
property in CSS.