Displays the increase, decrease, or neutral change in data. Use when you want the user to see changes in statistical data. User understanding is increased when paired with label or textual context (i.e. Dashboard Value).
import React from 'react' import { StatChange } from 'playbook-ui' const StatChangeDefault = (props) => { return ( <div> <StatChange change="increase" value="28.4" /> <br /> <StatChange change="decrease" value={6.1} /> <br /> <StatChange change="neutral" value={102} /> </div> ) } export default StatChangeDefault
import React from 'react' import { StatChange } from 'playbook-ui' const StatChangeUnit = (props) => { return ( <div> <StatChange icon="chart-line" value="28.4" /> <br /> <StatChange icon="chart-line-down" value={6.1} /> <br /> <StatChange value={102} /> </div> ) } export default StatChangeUnit
Increase colors your icon GREEN & Decrease colors your icon RED.
import React from 'react' import { StatChange } from 'playbook-ui' const StatChangeUnitTwo = (props) => { return ( <div> <StatChange change="increase" icon="level-up" value="28.4" /> <br /> <StatChange change="decrease" icon="level-down" value={6.1} /> <br /> <StatChange change="neutral" value={102} /> </div> ) } export default StatChangeUnitTwo