@urbaninfrastructure/react-icons
TypeScript icon, indicating that this package has built-in type declarations

5.0.1-alpha.0 • Public • Published

react-icons

NPM package containing icons as React components used by Urban Sharing.

Getting started

First, install the package by running yarn add @urbaninfrastructure/react-icons. Then, import the icons you want to use in your files:

import { Check as CheckIcon } from '@urbaninfrastructure/react-icons'

const App = () => <CheckIcon />

Adding new icons

To add new icons, put the svg icon in /icons, then run yarn prepare. Remember to preview your icon in the docs, run yarn storybook in root, and visit Icon/All.

We use Jest snapshot testing for the icons, so you need to update the snapshots by running yarn test -u after adding new icons.

If it looks ok, create a new version by running yarn release from root.

Readme

Keywords

none

Package Sidebar

Install

npm i @urbaninfrastructure/react-icons

Weekly Downloads

27

Version

5.0.1-alpha.0

License

ISC

Unpacked Size

952 kB

Total Files

1390

Last publish

Collaborators

  • glennquah
  • ghassenda
  • romanyankovsky
  • norgepaul
  • anna-maksimenko
  • tech-ops-urbansharing