remixicon-react

Remix Icon for React

remixicon-react downloads remixicon-react version remixicon-react license

remixicon-react유사 패키지:
npm 다운로드 트렌드
3 년
🌟 remixicon-react의 README.md에 실시간 사용 차트를 표시하려면 아래 코드를 복사하세요.
## Usage Trend
[![Usage Trend of remixicon-react](https://npm-compare.com/img/npm-trend/THREE_YEARS/remixicon-react.png)](https://npm-compare.com/remixicon-react#timeRange=THREE_YEARS)
Cumulative GitHub Star Trend
🌟 remixicon-react의 README.md에 GitHub Stars 트렌드 차트를 표시하려면 아래 코드를 복사하세요.
## GitHub Stars Trend
[![GitHub Stars Trend of remixicon-react](https://npm-compare.com/img/github-trend/remixicon-react.png)](https://npm-compare.com/remixicon-react)
통계 세부사항
패키지
다운로드
Stars
크기
Issues
발행일
라이선스
remixicon-react18,783164.58 MB12-(MIT AND OFL-1.1)
remixicon-react의 README

remixicon-react 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.

Installation

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

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/AlertLineIcon';
import AlertFillIcon from 'remixicon-react/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;
}