All Projects → danawoodman → React Fontawesome

danawoodman / React Fontawesome

Licence: mit
A React Font Awesome component.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to React Fontawesome

Svelte Awesome
Awesome SVG icon component for Svelte JS, built with Font Awesome icons. Based on Justineo/vue-awesome
Stars: ✭ 193 (-70.85%)
Mutual labels:  font, icon, font-awesome
tasarimcilar-ve-yazilimcilar-icin-kaynak-arsivim
Tasarım ve yazılım ile ilgili 2017 yılından günümüze kadar geçen zamanda toplamış olduğum arşivimi sizle ile paylaşıyorum. Ne mi var her şey...
Stars: ✭ 276 (-58.31%)
Mutual labels:  font, icon
rofi-fontawesome
fontawesome icon list for rofi dmenu
Stars: ✭ 58 (-91.24%)
Mutual labels:  font, font-awesome
qpage
👨‍💻 Free Project For Creating Academic Homepage Without Any Code In 3min
Stars: ✭ 87 (-86.86%)
Mutual labels:  font, icon
fontagon
Fontagon is a great tool that easily converts svg into icon font. Fontagon-cli allows faster conversion to commands.
Stars: ✭ 18 (-97.28%)
Mutual labels:  font, icon
FontRegister
FontRegister is a small Windows utility to install fonts and/or repair the font registry via commandline.
Stars: ✭ 17 (-97.43%)
Mutual labels:  font, font-awesome
vue-fa
Tiny FontAwesome 5 component for Vue.js.
Stars: ✭ 24 (-96.37%)
Mutual labels:  font-awesome, icon
Switzerland
🇨🇭Switzerland takes a functional approach to Web Components by applying middleware to your components. Supports Redux, attribute mutations, CSS variables, React-esque setState/state, etc… out-of-the-box, along with Shadow DOM for style encapsulation and Custom Elements for interoperability.
Stars: ✭ 261 (-60.57%)
Mutual labels:  component, components
tstyle
Customize Termux Font & Colors
Stars: ✭ 186 (-71.9%)
Mutual labels:  font, font-awesome
vue-iconfont
更优雅地使用 Iconfont.cn,同时支持 font-class 引入和 symbol 引入。
Stars: ✭ 27 (-95.92%)
Mutual labels:  font, icon
apple-emoji-linux
Apple Color Emoji for Linux
Stars: ✭ 392 (-40.79%)
Mutual labels:  font, font-awesome
Fontisto
The iconic font and CSS toolkit. Fontisto gives you scalable vector icons that can instantly be customized: size, color, drop shadow and anything that can be done with the power of CSS.
Stars: ✭ 413 (-37.61%)
Mutual labels:  font, icon
Avfonts
AVFonts for change/swap fontname throughout app.
Stars: ✭ 200 (-69.79%)
Mutual labels:  font, font-awesome
components
Components library for the Blockchain.com ecosystem 💍 🔥
Stars: ✭ 20 (-96.98%)
Mutual labels:  components, font-awesome
Eficonfont
Yet another stupid wrapper of icon font.
Stars: ✭ 200 (-69.79%)
Mutual labels:  font, icon
svelte-fa
Tiny FontAwesome 5 component for Svelte
Stars: ✭ 214 (-67.67%)
Mutual labels:  font-awesome, icon
Imguifontstudio
Font Helper Gui Tool for programming
Stars: ✭ 149 (-77.49%)
Mutual labels:  font, font-awesome
Svgtofont
Read a set of SVG icons and ouput a TTF/EOT/WOFF/WOFF2/SVG font.
Stars: ✭ 149 (-77.49%)
Mutual labels:  font, icon
FMX.FontAwesome
[FireMonkey] FontAwesome
Stars: ✭ 21 (-96.83%)
Mutual labels:  font, font-awesome
Pixo
Convert SVG icons into React components
Stars: ✭ 371 (-43.96%)
Mutual labels:  components, icon

react-fontawesome

styled with prettier Travis CI build status Dependency Status View on npm View on npm

A React component for the font-awesome icon library.

If you are using Font Awesome v5+, please use the official React component!. react-fontawesome does not support FontAwesome v5!

This project is no longer actively maintained. Please try and use the official component above if you are able!

Install

npm install --save react-fontawesome

Note: This component does not include any of the Font Awesome CSS or fonts, so you'll need to make sure to include those on your end somehow, either by adding them to your build process or linking to CDN versions.

Using CDN version

The fastest way to get started is to import FontAwesome with a link tag in your page's <head>:

<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" />

You can change the version number to use whatever version of FontAwesome you'd like.

Using with Webpack

If you're using WebPack, you will need to install FontAwesome, import the FontAwesome Sass/Less, and configure the font path. Please see this blog post on how to get Webpack and FontAwesome working together.

Usage

var React = require('react')
var FA = require('react-fontawesome')

React.render(<FA name="rocket" />, document.body)

Features

  • No dependencies (other than React)
  • Simple API that mirrors Font Awesome's class names.
  • Supports all Font Awesome modifiers (see API below).
  • Make use of Css Modules
  • Add your own classNames, styles and other props (all additional props are passed directly to the component).

Examples

Regular usage

var React = require('react')
var FontAwesome = require('react-fontawesome')

var MyComponent = React.createClass({
  render: function() {
    return (
      <FontAwesome
        className="super-crazy-colors"
        name="rocket"
        size="2x"
        spin
        style={{ textShadow: '0 1px 0 rgba(0, 0, 0, 0.1)' }}
      />
    )
  },
})

With the use of CSS Modules

import React from 'react'
import FontAwesome from 'react-fontawesome'
import faStyles from 'font-awesome/css/font-awesome.css'

var MyComponent = React.createClass({
  render: function() {
    return (
      <FontAwesome
        className="super-crazy-colors"
        name="rocket"
        cssModule={faStyles}
        size="2x"
        spin
        style={{ textShadow: '0 1px 0 rgba(0, 0, 0, 0.1)' }}
      />
    )
  },
})

The above will create output like this:

<span class="font-awesome__fa___2otTb font-awesome__fa-rocket___lfSov font-awesome__super-crazy-colors___3k583"></span>

API

See the API docs for full documentation.

Contributing

Pull requests welcome!

Run the test suite with npm test and format your code with npm run format. Make sure tests are passing and that you write tests for new features and document changes to the API with updates to the JSDocs.

Before you submit your pull request, run npm run dist to build the project and commit the changes.

License

MIT © Dana Woodman

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].