Statistic

A statistic emphasizes the current value of an attribute.
Example
Theme
Auto
Auto
Light
Dark
Scale
Medium
Large
Medium
Small
8,964
32
<div class="ts-statistic">
    <div class="value">8,964</div>
    <div class="comparison is-increased">32</div>
</div>
Structure
Value

A value is the main number to be displayed.

19,293
<div class="ts-statistic">
    <div class="value">19,293</div>
</div>
Comparison

A comparison is a number that indicates the change of the value.

42,689
195
1,998
13
<div class="ts-statistic">
    <div class="value">42,689</div>
    <div class="comparison is-increased">195</div>
</div>
<div class="ts-statistic">
    <div class="value">1,998</div>
    <div class="comparison is-decreased">13</div>
</div>
Unit

A unit is a text that describes the value.

10,000
days
<div class="ts-statistic">
    <div class="value">10,000</div>
    <div class="unit">days</div>
</div>
Icon

A statistic can have an icon.

30,000
<div class="ts-statistic">
    <span class="ts-icon is-eye-icon"></span>
    <div class="value">30,000</div>
</div>
Compositions
Label Text

A statistic can have a label on top or bottom.

Downloads
10,000
times
<div class="ts-text is-label">Downloads</div>
<div class="ts-statistic">
    <div class="value">10,000</div>
    <div class="unit">times</div>
</div>
Designed by Yami Odymel from Taiwan, along with the ❤️ from contributors. The source code is licensed under MIT, and the documentation is under CC 0 public domain. Feel free to use, share, or contribute. Tocas UI is a design system for Caris Events, part of Sorae & Co., Ltd.
Translators: Yami Odymel
Trademark of the owner of Tocas UI