Value component
A Value component
Install
npm i @wethecurious/wtc-ui-library
Usage
Import it into your project
import { Text } from '@wethecurious/wtc-ui-library'
<Value
value={7}
icon={IconType.LeftArrow}
trendIcon={IconType.RightArrow}
/>
Props
Prop | Description | Default |
---|---|---|
label | Display label | |
value | Numerical value to display | 0 |
icon | Icon for the left side of value | |
unit | Displayed value measurement unit | |
trendIcon | Trend icon for the value | |
isIconLast | Displays Icon after the value if true | false |