3.0.0 • Published 4 years ago

react-lineicons v3.0.0

Weekly downloads
127
License
MIT
Repository
github
Last release
4 years ago

react-lineicons

build status PRs Welcome GitHub issues HitCount

NPM

Simple react component for using lineicons in React application.

Check icons here

Installation

react-lineicons is available as an npm package.

npm install react-lineicons

or

yarn add react-lineicons

Usage

import React from "react";
import ReactDOM from "react-dom";
import LineIcon from "react-lineicons";

function App() {
  return <LineIcon name="spinner" />;
}

Options

PropertyTypeValuesDescription
nameStringe.g. alarmthe name of the icon, see lineicons for list of all available icons
tagStringe.g. 'li'by default, Icon tag is i, which can be changed to any valid HTML element
sizeString'lg', 'md', 'sm', 'xs'the size of the icon
styleObjectcustom style object
effectString'spin', 'tada', 'flashing', 'burst', 'fade-left', 'fade-right', 'fade-up', 'fade-down'Additional effect on icon

Any other prop would directly be applied as on the root element (useful for a11y).


Using the Pro version of LineIcons

This module only works with free version of lineicons. To use the Pro version, please use the download section from your lineicons dashboard.


Contribution

Suggestions and PRs are welcome!

Please create issue or open PR request for contribution.


License

Open Source Love

refer LICENSE file in this repository.

3.0.0-0

4 years ago

3.0.0

4 years ago

2.2.0

5 years ago

2.1.0

5 years ago

2.0.0

5 years ago

1.0.0

6 years ago

0.0.2

6 years ago