Stat cards
Slant / Data
Headline numbers with a trend and a sparkline, switchable between periods.
The theme follows the link: share a page with ?theme=moon.
Usage
- The period switch is a
groupof toggle buttons witharia-pressed. - Sparklines are decorative; the numbers and trend text carry the data.
Keyboard
| Tab | reaches the period buttons |
| Enter / Space | selects a period |
Accessibility
- Trend arrows are hidden from assistive technology; the percentage is text.
Stat cards in React and SwiftUI.
The React tab is the component’s real source; the SwiftUI tab is its twin in TUTTNKit.