react-ikonate
TypeScript icon, indicating that this package has built-in type declarations

2.0.1 • Public • Published

React Ikonate

CircleCI Branches Functions Lines Statements npm bundle size NPM

Based on the beautiful icon package Ikonate this React package aims to provide all the features of these icons, while being easily accessible in your React project.

You can find all the icons and customization options on the project home page.

Installation

Install the icons via NPM or yarn:

yarn add react-ikonate

--- or ---

npm install --save react-ikonate

Usage

Sources are generated through TypeScript so typings are available.

You can style the icons by themselves.

import { Activity } from 'react-ikonate';
 
// Style via SVG props
render(<Activity fontSize="23px" borderWidth={1}/>, el);

You can style them via a Provider:

import { Activity, Chat, IkonateContext } from 'react-ikonate';
 
render((
    <IkonateContext.Provider value={{ border: 1, style: 'round' }}>
        <Menu>
            <Menu.Item>
                <Activity/>
                Recent Activity
            </Menu.Item>
            <Menu.Item>
                <Chat/>
                Messages
            </Menu.Item>
        </Menu>
    </IkonateContext.Provider>
), el)

The Ikonate Context is defined as:

type IkonateContextType = {
    border?: number;
    size?: number | string;
    style?: 'square' | 'roundSquare' | 'round';
    color?: string;
}

Contributing

If you have problems with the package itself (i.e.: rendering in React, props not being passed, error messages on console, etc), file an issue here. Clone the project, make your modifications and create a PR to the branch master. Releases are created automatically from version tags, e.g.: v1.0.1 for version 1.0.1.

For issues related to the actual icons (i.e.: new icon request, visual issues, etc) refer to the original repository's issue page.

Ikonate and React Ikonate are available under the MIT. Feel free to use the set in both personal and commercial projects. Attribution is much appreciated but not required.

Package Sidebar

Install

npm i react-ikonate

Weekly Downloads

54

Version

2.0.1

License

MIT

Unpacked Size

7.72 MB

Total Files

1713

Last publish

Collaborators

  • danielkov