Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/anubhavsrivastava/react-lineicons
Simple react component for using lineicons in React application.
https://github.com/anubhavsrivastava/react-lineicons
icon-set icons react-component react-icons
Last synced: 12 days ago
JSON representation
Simple react component for using lineicons in React application.
- Host: GitHub
- URL: https://github.com/anubhavsrivastava/react-lineicons
- Owner: anubhavsrivastava
- License: mit
- Created: 2019-05-19T16:58:18.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-03-14T16:06:11.000Z (over 1 year ago)
- Last Synced: 2024-10-05T23:34:07.887Z (about 2 months ago)
- Topics: icon-set, icons, react-component, react-icons
- Language: CSS
- Homepage:
- Size: 5.17 MB
- Stars: 12
- Watchers: 3
- Forks: 1
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# react-lineicons
[![build status](https://api.travis-ci.org/anubhavsrivastava/react-lineicons.svg?branch=master)](https://travis-ci.org/anubhavsrivastava/react-lineicons/)
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com)
[![GitHub issues](https://img.shields.io/github/issues/anubhavsrivastava/react-lineicons.svg?style=flat-square)](https://github.com/anubhavsrivastava/react-lineicons/issues)
[![HitCount](http://hits.dwyl.io/anubhavsrivastava/react-lineicons.svg)](http://hits.dwyl.io/anubhavsrivastava/react-lineicons)[![NPM](https://nodei.co/npm/react-lineicons.png?downloads=true&stars=true)](https://www.npmjs.com/package/react-lineicons)
Simple react component for using [lineicons](https://v2.lineicons.com/) in React application.
Check icons [here](https://lineicons.com/icons/)
## Installation
react-lineicons is available as an [npm package](https://www.npmjs.com/package/react-lineicons).
```sh
npm install react-lineicons
```or
```sh
yarn add react-lineicons
```## Usage
```jsx
import React from "react";
import ReactDOM from "react-dom";
import LineIcon from "react-lineicons";function App() {
return ;
}
```## Options
| Property | Type | Values | Description |
| :------- | :----- | :------------------------------------------------------------------------------------- | :----------------------------------------------------------------------------------------------------- |
| name | String | e.g. alarm | the name of the icon, see [lineicons](https://v2.lineicons.com/icons/) for list of all available icons |
| tag | String | e.g. 'li' | by default, Icon tag is `i`, which can be changed to any valid HTML element |
| size | String | 'lg', 'md', 'sm', 'xs' | the size of the icon |
| style | Object | | custom style object |
| effect | String | '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](https://badges.frapsoft.com/os/mit/mit.svg?v=102)](LICENSE)
refer `LICENSE` file in this repository.