GithubHelp home page GithubHelp logo

luizhop / react-line-awesome Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bathlamos/react-line-awesome

0.0 0.0 0.0 3.41 MB

React components for Line Awesome Icons

Shell 0.07% JavaScript 2.48% TypeScript 67.83% CSS 29.62%

react-line-awesome's Introduction

Line Awesome Icons as Typescript React Components

code style: prettier View on npm

Easily add and customize Line Awesome icons in your JS or Typescript React project without clashing with Font Awesome classes.

Installation

  1. Add the library as a dependency from NPM:
    # yarn
    yarn add react-line-awesome

    # npm
    npm install react-line-awesome
  1. Add a link to the font files in your project's HTML files:
<link rel="stylesheet" href="https://maxcdn.icons8.com/fonts/line-awesome/1.1/css/line-awesome.min.css" />

Features

  • No dependencies (other than React)
  • Simple API that mirrors Font Awesome's class names.
  • Add your own classNames, styles and other props (all additional props are passed directly to the component).
  • Proper accessibility tags.

Examples

var React = require('react')
import { ThumbsUpIcon } from 'react-line-awesome'

function MinimalExample(props) {
  return <ThumbsUpIcon />
}

function LongerExample(props) {
  return (
    <ThumbsUpIcon className="custom-class" component="span" style="color: blue">
      <span>I am a child!</span>
    </ThumbsUpIcon>
  )
}

See the list of all icons available

react-line-awesome's People

Contributors

bathlamos avatar dependabot[bot] avatar luizhop avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.