Icon

Icon UI Component

Single icon

Icon list

Installation

npm i @synerise/ds-icon
or
yarn add @synerise/ds-icon

Usage

import Icon, { AngleLeftM } from '@synerise/ds-icon'
<Icon component={<AngleLeftM />
color={'red'}
title={'customIcon'}
size={20}
className={'classIcon'}
/>

API

PropertyDescriptionTypeDefault
colorDefine the color usedstringinherit
titleName iconstring
sizeDefine size iconstring or number24
onClickThe callback function that is triggered when click on iconfucnction
componentThe component used for the root nodeReactNode
classNameicon classNamestring
styleStyle properties of icon, like color etc.CSSProperties