1.0.3 • Published 4 years ago

okra-icons v1.0.3

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

Okra-Icons

This package provides the Okra-icons packaged as a set of React components.

Installation

Install the package in your project directory with:

// with npm
npm install okra-icons

// with yarn
yarn add okra-icons

These components uses React to render the SVG path for each icon, and so a have a peer-dependency on the release of React.

Component Usage

You can use path imports to avoid pulling in unused modules. For instance, use:

    // 🚀 Fast
    import AccountIcon from 'okra-icons/svg/AccountIcon';
    import TeamIcon from 'okra-icons/svg/TeamIcon';

instead of top level imports:

    import { AccountIcon } from 'okra-icons/svg';
    <AccountIcon
        style = {}
        fill = "red"
        width = "25.222" 
        height = "23.013" 
        className = "" 
        viewBox = "0 0 25.222 23.013"
    />

Documentation