@opuscapita/react-icons

4.0.14 • Public • Published

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" />
    );
  }
}

Readme

Keywords

none

Package Sidebar

Install

npm i @opuscapita/react-icons

Weekly Downloads

20

Version

4.0.14

License

MIT

Unpacked Size

1.38 MB

Total Files

193

Last publish

Collaborators

  • ariusz
  • ilhamkadduri
  • smachnow
  • piotr.krzysztof.murdzia
  • kuos
  • elaczapiewska
  • janek.bug
  • ocmachineuser
  • ocautomation