remixicon-react-redux
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

remixicon-react-redux npm package Remix Icons version build status

Remix Icons for React packaged as single components

This repo is based on the very good mdi-react package.

Original fork from https://github.com/bayesimpact/remixicon-react to fix some small bugs and issues.

Installation

npm install remixicon-react-redux
# or if you use Yarn
yarn add remixicon-react-redux

Usage

Just search for an icon on remixicon.com and look for its name.
The name translates to PascalCase followed by the suffix Icon in remixicon-react.

For example the icons named alert-line and alert-fill:

import AlertLineIcon from 'remixicon-react-redux/AlertLineIcon';
import AlertFillIcon from 'remixicon-react-redux/AlertFillIcon';

const MyComponent = () => {
  return (
    <div>
      {/* The default color is the current text color (currentColor) */}
      <AlertLineIcon color="#fff" />
      {/* The default size is 24 */}
      <AlertFillIcon className="some-class" size={16} />
      {/* This sets the icon size to the current font size */}
      <AlertIcon size="1em" />
    </div>
  );
};

To change the color on hover you can just use your own class and plain CSS.

.some-class:hover {
  fill: red;
}

You can also add default styling via the remixicon-icon class.

.remixicon-icon {
  background-color: green;
}

Package Sidebar

Install

npm i remixicon-react-redux

Weekly Downloads

66

Version

1.0.3

License

(MIT AND OFL-1.1)

Unpacked Size

4.78 MB

Total Files

4533

Last publish

Collaborators

  • scouttyg