@rive/iconic

0.0.3 • Public • Published

iconic

build svg icons that can be used in html, angular, react and vue.

generate icons

install the package:

npm install --save-dev @rive/iconic

edit your package.json:

{
    "scripts": {
        "build": "rive-iconic"
    }
}

then put some svg icon files in the root folder.

next, let's run:

npm run build

svg files will be optimized. js and json files with same base name will be generated, which contains icon path and color information and can be imported directly into any js project.

use your icons

import Icon from "foobar-react/icon";
import cross from "foobar-icons/cross";

<Icon data={cross} />;

Package Sidebar

Install

npm i @rive/iconic

Weekly Downloads

4

Version

0.0.3

License

AGPL-3.0

Unpacked Size

45.5 kB

Total Files

8

Last publish

Collaborators

  • guoyunhe