Icon

Icon UI Component

Single icon

Icon list

Installation

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

Usage

import Icon from '@synerise/ds-layout'
import AngleLeftM from '@synerise/ds-icon/dist/icons/AngleLeftM';
<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