Icon
UsageIcons

Setup

In order to use icon, import Icon component

import {Icon} from "tuix-design"
copy

Usage

Ready to implement the icons,

you can have you disired size

<Icon name="Home"/>
<Icon name="Home" color="#fff" size={32} />
<Icon name="Home" color="#fff" size={40} />
copy

rotation is helpfull in some cases

<Icon name="Chevron" color="#fff" size={32} />
<Icon name="Chevron" color="#fff" size={32} rotate={90} />
<Icon name="Chevron" color="#fff" size={32} rotate={180} />
copy

customizable color

<Icon name="Home"/>
<Icon name="Home" color="rgb(49,129,187)" size={32} />
<Icon name="Home" color="purple" size={40} />
copy

API

propstypestatusdefaultdescription
nameIconsNamerequiredNullName of the icon to render
colorstringoptional#00000Icon's color
sizenumberoptional24Icon's size in pixels
rotatenumberoptional0Icon's rotation in degree
setupusageapi