Skip to content

axinvd/icomoon-helper

Repository files navigation

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>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published