test-icon
unify icon processor
Last updated 2 months ago by leanbs .
MIT · Original npm · Tarball · package.json
$ cnpm install test-icon 
SYNC missed versions from official npm registry.

Unify Icons

Include icons that is created by Unify design team, which utilizes ES6 imports that allow you to include only the icon that your project is using.

Installation

$ yarn add unify-icons

Usage

import IconAdd from 'unify-icons/action_add';

const Greetings = () => (
  <div>
    Hello World 
    <IconAdd>
  </div>
)

Configurations

You can configure unify-icons props using React context API.

requirement React 16.3 or higher.

import IconContext from 'unify-icons/context';
import IconAdd from 'unify-icons/action_add';

<IconContext.Provider value={{ color: 'purple' }}>
  <IconAdd />
</IconContext.Provider>
key default notes
color undefined / inherit overwrite colors
size 1em overwrite size

Current Tags

  • 1.0.6                                ...           dev (5 months ago)
  • 1.0.10                                ...           latest (2 months ago)

11 Versions

  • 1.0.10                                ...           2 months ago
  • 1.0.9                                ...           2 months ago
  • 1.0.8                                ...           4 months ago
  • 1.0.7                                ...           4 months ago
  • 1.0.6                                ...           5 months ago
  • 1.0.5                                ...           5 months ago
  • 1.0.4                                ...           5 months ago
  • 1.0.3                                ...           5 months ago
  • 1.0.2                                ...           5 months ago
  • 1.0.1                                ...           5 months ago
  • 1.0.0                                ...           5 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 2
Dependencies (17)
Dev Dependencies (1)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |