Stat Card
Data Displayatlas-stat-cardExamples
KPIs
A label, a value, and an optional trend and description.
Revenue
€45,231
+20.1% from last month
Customers
2,350
+180 from last month
Churn
2.4%
-0.3% from last month
Trends
trend is up , down or neutral and colours trendValue ; the text itself states the change, so colour is not the only cue. Leave trend out for a plain figure.
Sign-ups
1,204
+12% vs last week
Refunds
18
-4 vs last week
Response time
1.8 h
±0 vs last week
Open tickets
37
API
Generated from the library source, so it always matches the code.
AtlasStatCardComponent atlas-stat-card
| Input | Type | Default | Description |
|---|---|---|---|
| label required | string | — | |
| value required | string | — | |
| description | string | undefined | undefined | |
| icon | string | undefined | undefined | |
| trend | StatTrend | undefined | undefined | |
| trendValue | string | undefined | undefined | |
| class | string | '' |
Types
StatTrend
type StatTrend = 'up' | 'down' | 'neutral'