icomoon-helper
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

icomoon-helper

icomoon-helper is a helper for icomoon custom font render with support multicolor

Installation

Install: npm i icomoon-helper --save-exact

General Usage

Create icon set manually or icomoon-cli

import {createIconSet} from 'icomoon-helper';

export const Icon = createIconSet('pathToIcomoon/selection.json');

Rendering

Options color and opacity are optional, defaults like icon

<Icon size={10} color={"red"} opacity={0.5}>
    {"iconName"}
</Icon>

For multicolor icons

<Icon size={10} color={["red", "yellow"]} opacity={[0.5, 0.1]}>
    {"iconName"}
</Icon>

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.2
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.2
    2

Package Sidebar

Install

npm i icomoon-helper

Weekly Downloads

2

Version

0.0.2

License

MIT

Unpacked Size

11 kB

Total Files

15

Last publish

Collaborators

  • axinvd