iconsax-react is a React component library wrapping the Iconsax icon pack, offering 1000 distinct icons across six styles (Linear, Outline, TwoTone, Bulk, Broken, Bold), totaling 6000 variations. Currently at version 0.0.8, it's in early development, implying frequent updates and potential for rapid change. The library provides a vast collection of visually consistent, 24px grid-based icons, usable as standard React components with configurable `color`, `size`, and `variant` props. It aims to offer a comprehensive, style-flexible iconographic system for modern React applications.
npm install iconsax-reactVerified import paths — ran on the pinned version, not inferred.
Demonstrates importing and using multiple Iconsax components with custom sizes, colors, and variant styles within a React functional component.
Review the GitHub repository's commit history or issue tracker before updating. Pin exact versions in `package.json` for stability.
Always specify the `variant` prop (e.g., `<EmojiHappy variant="Bulk" />`) if you intend to use a style other than the default 'Linear'.
Use simple pixel values as numbers (`size={24}`) for consistent rendering, or ensure valid CSS length units when using strings (`size="24px"`, `size="1.5em"`).Run `npm install iconsax-react` or `yarn add iconsax-react` to install the package. Double-check the import statement for correct spelling.
Ensure the icon is imported with curly braces, e.g., `import { EmojiHappy } from 'iconsax-react';`. Avoid `import EmojiHappy from 'iconsax-react';`.