1.0.3 • Published 5 years ago

react-remixicon v1.0.3

Weekly downloads
155
License
MIT
Repository
github
Last release
5 years ago

react-remixicons

code style: prettier Build Status

Description

Remix Icons as React Component

Installation

  1. Add the library as a dependency from NPM:
    # yarn
    yarn add react-remixicon

    # npm
    npm install react-remixicon
  1. Add a link to the font files in your project's HTML files:
    <link href="https://cdn.remixicon.com/releases/v1.3.1/remixicon.css" rel="stylesheet">

Demo

View the DEMO

API

Prop nameTypeDefaultDescription
namestringrequiredIcon name
typestringfillIcon type
sizestring1xIcon size
rolestringpresentationIcon role
styleObject{}Icon style
refReact.refnullIcon node

Code example

import React from 'react';
import  Icon  from 'react-remixicon';

export default class App extends React.Component {
  render() {
    return (
      <Icon name="home-3" type="line" size="3x" />
    );
  }
}
1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago