2.0.0 • Published 4 years ago

@artibox/icons v2.0.0

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

npm package npm downloads

Installation

npm install @artibox/icons --save

or

$ yarn add @artibox/icons

Introduction

This package just only includes all icons for artibox and the interface IconDefinition.

Usage

Definition

Please see the definition first.
All icons are restricted in this definition.

Import

//  import from root.
import { AlignLeft } from '@artibox/icons';
//  or for single import
import { AlignLeft } from '@artibox/icons/align-left';

Render

You can use the icon definition to render the svg by yourself.eg.

...

return (
  <svg>
    <path {...icon.definition.path} />
  </svg>
);

Or use the Icon component of artibox.