npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

rebel-icons

v2.0.2

Published

Include an awesome rebel icons in your React projects with `react-icons`. You can use ES6 imports that allows you to include only icons that your project is using. Highly customizable set of icons.

Downloads

10

Readme

rebel-icons

Include pixel perfect icons in your React projects easily with rebel-icons. Use ES6 imports and include only the icons that your project is using.

RebelIcons

Use React Higher Order component to adjust your icons defaults. Override an attribute if needed and even more... with Rebel Icons.

Dependencies

This library designed to be used with React, you don't need any other packages to use this icons.

Installation

We distribute this package as npm package. In order to use it you just need to install it as any other project in your system.

npm install rebel-icons --save

Usage

You can easily add rebel-icons to any Component in you app, just import it, and you good to go.

import Icon from 'rebel-icons';

class OneAwesomeComponent extends Component {
  render() {
    return <h3> Lets do some <Icon icon="RubyIcon" /></h3>
  }
}

Configuration

All components use IconBase, so you can use Context to provide some defaults to your project. Your can use one of your root component to set this configuration.

export default class RootComponent extends Component {
  static childContextTypes = {
    rebelIconsBase: PropTypes.object
  };

  getChildContext() {
    return {
      rebelIconsBase: {
        color: 'grey',
        size: 64,
        style: {
          ...
        }
      }
    }
  }
  ...
}

If you want to reduce the size of your bundle and you are using webpack you can use ContextReplacementPlugin to specify the list of Rebel Icons that you want to use.

// Webpack_config.js
 
const Icons = ['rebel', 'js', 'ruby', ...];
const regExp = new RegExp(`(?:${Icons.join('|')})Icon`, 'i');

plugins: [
  ...
  new webpack.ContextReplacementPlugin(/rebel-icons[\/\\]rebel-lib$/, regExp)
]

rebel

Getting help

If you have questions, concerns, bug reports, etc, please file an issue in this repository's Issue Tracker. We appreciate all feedback and will be glad to help if we can.

Getting involved

  • [ ] Fork it!
  • [ ] Create your feature branch: git checkout -b my-new-feature
  • [ ] Commit your changes: git commit -am 'Add some feature'
  • [ ] Push to the branch: git push origin my-new-feature
  • [ ] Submit a pull request :D

General instructions on how to contribute can be found here CONTRIBUTING.

Contributors

| Alla Odeyanenko | Anton Shemerey | Aleksandr Zhukov | | :---: |:---:| :---:| | | Anton Shemerey | Aleksandr Zhukov | https://www.linkedin.com/in/alla-odeyanenko | https://github.com/shemerey | https://github.com/AleksandrZhukov


LICENSE

This project released under MIT LICENSE


Credits and references

  1. react-icons
  2. Devicon

FAQ.

  • Where is the font? Rebel Icons doesn’t come as a font we are target React only.
  • Is Rebel Icons free even for commercial use? Yes, absolutely.