@opuscapita/react-icons

OpusCapita icons

Stats

stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
41Apr 17, 2020Aug 14, 2017Minified + gzip package size for @opuscapita/react-icons in KB

Readme

react-icons

Description

A collection of SVG icons, check out the Demo for the list of icons.

Installation

npm install @opuscapita/react-icons

Demo

View the DEMO

Builds

UMD

The default build with compiled styles in the .js file. Also minified version available in the lib/umd directory.

CommonJS/ES Module

You need to configure your module loader to use cjs or es fields of the package.json to use these module types. Also you need to configure sass loader, since all the styles are in sass format.

API

Prop name Type Default Description
type string required Icon type / category
name string required Icon name
width number 40 Icon width
height number 40 Icon height

Code example

import React from 'react';
import { Icon } from '@opuscapita/react-icons';

export default class IconsView extends React.Component {
  render() {
    return (
      <Icon type="indicator" name="remove" />
    );
  }
}

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.