react-remixicons
Description
Remix Icons as React Component
Installation
- Add the library as a dependency from NPM:
# yarn yarn add react-remixicon # npm npm install react-remixicon
- Add a link to the font files in your project's HTML files:
Demo
View the DEMO
API
Prop name | Type | Default | Description |
---|---|---|---|
name | string | required | Icon name |
type | string | fill | Icon type |
size | string | 1x | Icon size |
role | string | presentation | Icon role |
style | Object | {} | Icon style |
ref | React.ref | null | Icon node |
Code example
import React from 'react';import Icon from 'react-remixicon'; Component { return <Icon ="home-3" ="line" ="3x" /> ; }