react-simple-line-icons
Simple react component for using simple-line-icons in React application.
Installation
react-simple-line-icons is available as an npm package.
npm install react-simple-line-icons
or
yarn add react-simple-line-icons
Usage
import React from 'react';import ReactDOM from 'react-dom';import SimpleLineIcon from 'react-simple-line-icons'; { return <SimpleLineIcon ="bulb" /> ;} ReactDOM;
Options
Property | Type | Values | Description |
---|---|---|---|
name | String | e.g. bulb | the name of the icon, see simple-line-icons for list of all avaliable icons |
color | String | e.g. white | the color of the icon |
size | String | Large, Medium, Small | the size of the icon |
style | Object | custom style object |
Support
Please open an issue for support.
Contributing
Please contribute using Github Flow. Create a branch, add commits, and open a pull request.
License
This project is licensed under the terms of the MIT license