react-simple-line-icons

1.0.8 • Public • Published

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';
 
function App() {
  return (
    <SimpleLineIcon name="bulb" />
  );
}
 
ReactDOM.render(<App />, document.getElementById('root'));

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

Package Sidebar

Install

npm i react-simple-line-icons

Weekly Downloads

172

Version

1.0.8

License

MIT

Last publish

Collaborators

  • npm