@petra-ui/icons
v1.0.0
Published
Pixel Perfect Icons
Downloads
2
Keywords
Readme
Installation
npm
npm install @petra-ui/icons
yarn
yarn add @petra-ui/icons
Usage
First Import your desired icon from the library
import { Home } from '@petra-ui/icons';
Once Imported you can then use the icon inside your components like this:
<Home size={20} variant="outlined" color="#000000" strokeWidth={2} />
Icon Props
Each Icon takes the following props:
variant
(string): Can be "outlined"
or "solid"
color
(string): Sets the icon color using a color code (e.g.,"#FF5733"
).
size
(number): Defines the icon size in pixels.
strokeWidth
(number, only for variant="outlined"
): Sets the stroke width for outlined icons.