2.0.0 • Published 4 years ago
@artibox/icons v2.0.0
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.