@open-condo/icons
v1.14.1
Published
A set of SVG icons presented as React components
Downloads
199
Maintainers
Readme
@open-condo/icons
A set of SVG icons presented as React components
Table of contents
Workflow
Icons set is maintained in Figma by design team, — this is a primary source of changes. Developers should only pull and commit changes, made by design team.
See Import
Installation
To install package simply run the following command if you're using npm as your package manager:
npm i @open-condo/icons
or it's yarn alternative
yarn add @open-condo/icons
Usage
You can import needed component with its props directly from package entry point like this:
import { Car } from '@open-condo/icons'
By default, all icons are in large
size and inherit color from a color
style of current container.
You can change it by passing some extra props:
<Car color='red' size='small'/>
Icons can also inherit their size from parent context. To achieve that, pass size='auto'
prop to it
<Car size='auto'/> // width = height = 1em