Ready to use SVG components of Aura for React!
yarn add react-allergens
import { PhoneIcon } from "react-allergens";
const Example = () => {
return <PhoneIcon />;
};
const ExampleProps = () => {
return (
<PhoneIcon 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 |