2.3.0 • Published 5 years ago

@truehome/icon-builder v2.3.0

Weekly downloads
1
License
-
Repository
-
Last release
5 years ago

Truehome Icons Library

This project is a collection of react components that will render an icon that will be used across any of the Truehome projects.

Usage

To install the icons on any other project, you can install it running

npm install @truehome/icons

This will install the icons, enabling to use them like any other react component.

import IconName from "@truehome/icons/icon-name"

...

<IconName />
<IconName className={styles.aditionalStylingClass} />
...

Adding new icons

The src folder contains all the icons in a svg format. To convert them to react format, execute:

npm run build

This will create a build directory with the icon components. Each icon component will have the same name as the svg, replacing spaces for dashes (-).

Releasing

To release a new version to the registry, the version inside the package.json should be bumped. After that, run:

npm run release
2.3.0

5 years ago

2.2.0

5 years ago