import hbs from 'htmlbars-inline-precompile'; export default { title: 'Components|Metrics', }; export let Standard = () => { return { template: hbs`
Metrics

Label

12

Metrics are a way to show simple values (generally numbers). Labels are smaller than numbers to put emphasis on the data.

`, }; }; export let Groups = () => { return { template: hbs`
Metric groups

Label

1 / 2

Number

1,300

Datacenter

dc1

Today

81º

Tomorrow

73º

Related metrics should be lumped together in metric groups. All metrics have to be in a metric group. By putting multiple metrics in a single group, they will be visually lumped together.

`, }; }; export let Colors = () => { return { template: hbs`
Metric colors

Info

1

Success

2

Warning

3

Danger

4

White

5

Light

6

Primary

7

Dark

8

Black

9

All color-modifiers work for metrics, but some work better than others.

Emotive colors work well and are put to use when applicable. Other colors have worse support and less utility.

`, }; }; export let States = () => { return { template: hbs`
Metric states

One

A

Two

B

Three

C

One

A

Two

B

Three

C

Metrics have a disabled state. This is used when a metric is non-existent or irrelevant. It's just as important to show the lack of value as it is to show a value, so simply not rendering non-existent or irrelevant metrics would be worse.

`, }; };