UNPKG

iconsax-react

Version:
65 lines (46 loc) 1.69 kB
<h1 align="center">iconsax for React</h1> <a href="https://www.npmjs.com/package/iconsax-react-native">for React Native</a> <p align="center"> 1000 icons in 6 different styles, total 6000 icons | Perfectly balance | 24px grid-based <p> <p align="center"> <a href="https://iconsax-react.pages.dev/"><strong>Browse icons at site</strong></a> </p> <br> <br> > ©️ iconsax <a href="https://iconsax.io/">github</a> and <a href="https://iconsax.io/">official > website</a>(other format and platform available) ## Installation ```bash yarn add iconsax-react # or npm i iconsax-react ``` ## Usage ```jsx import React from 'react'; //import icon. import { EmojiHappy } from 'iconsax-react'; const Example = () => { // then use it as a normal React Component return <EmojiHappy />; }; ``` You can configure Icons with inline props: ```jsx <EmojiHappy color="#eee" variant="Bulk" size={54} /> ``` ## Props | Prop | Type | Default | Note | | --------- | --------------------------------------------------- | -------------- | ---------------------- | | `color` | `string` | `currentColor` | css color | | `size` | `number` `string` | 24px | size={24} or size="24" | | `variant` | `Linear` `Outline` `TwoTone` `Bulk` `Broken` `Bold` | `Linear` | icons styles | --- ## Contributing See <a href="https://github.com/rendinjast/iconsax-react/blob/main/CONTRIBUTING.md">CONTRIBUTING.md</a> ## License <a href="https://github.com/rendinjast/iconsax-react/blob/main/LICENSE">MIT</a>