mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-10-29 17:52:32 +00:00
* creates stattext component * creates .scss file * creates storybook * fixes typo * fixes readme * adds changelog * finishes tests
1.2 KiB
1.2 KiB
StatText
StatText components are used to display a label and associated value beneath, with the option to include a description.
Params
| Param | Type | Default | Description |
|---|---|---|---|
| label | string |
null |
The label for the statistic |
| value | string |
null |
Value passed in, usually a number or statistic |
| size | string |
null |
Sizing changes whether or not there is subtext. If there is subtext 's' and 'l' are valid sizes. If no subtext, then 'm' is also acceptable. |
| [subText] | string |
SubText is optional and will display below the label |
Example
<StatText @label="Active Clients" @stat="4,198" @size="l" @subText="These are the active client counts"/>
See