Skip to content

Latest commit

 

History

History
49 lines (29 loc) · 1.26 KB

File metadata and controls

49 lines (29 loc) · 1.26 KB

import { Meta, Primary, Controls, Story } from '@storybook/addon-docs/blocks'; import * as DemoStories from './demo.stories';

Overview

This component is a flexible component that can render a currency value or a string using different custom color - It can also display a trend of the value (up or down) as well as render a line chart of multiple pieces of data.

Props

Examples

Trend of a field over a reporting value - the values are provides as a comma-separated string

Display a currency or percentage value based on the trend (positive or negative)

Same as before but displayed using renderingMode='badge'

Display values with custom colors

Demo

Here is an example of using the trend display in a list view

Configuration

and in a case view summary

Configuration