Package Exports
- iconsax-react
- iconsax-react/dist/cjs/index.js
- iconsax-react/dist/esm/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (iconsax-react) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
iconsax for React
1000 icons in 6 different styles, total 6000 icons | Perfectly balance | 24px grid-based
©️ iconsax github and official website(other format and platform available)
Installation
yarn add iconsax-react
# or
npm i iconsax-react
Usage
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:
<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 CONTRIBUTING.md