← All components
Motion
ComponentsStreak Heatmap
Streak Heatmap
A logged day pops and joins the pattern.
- CSS layer
- Implemented
- Kosh Pro · $15 once
9day streak
View as table
| Date | Value |
|---|---|
| 2026-11-04 | 40 |
| 2026-11-03 | 40 |
| 2026-11-02 | 60 |
| 2026-11-01 | 25 |
| 2026-10-31 | 25 |
| 2026-10-30 | 25 |
| 2026-10-29 | 60 |
| 2026-10-28 | 25 |
| 2026-10-27 | 60 |
| 2026-10-25 | 10 |
| 2026-10-24 | 25 |
| 2026-10-23 | 60 |
| 2026-10-22 | 25 |
| 2026-10-21 | 60 |
| 2026-10-20 | 25 |
| 2026-10-19 | 25 |
| 2026-10-18 | 25 |
| 2026-10-17 | 25 |
| 2026-10-16 | 25 |
| 2026-10-15 | 40 |
| 2026-10-12 | 40 |
| 2026-10-11 | 10 |
| 2026-10-09 | 60 |
| 2026-10-08 | 40 |
| 2026-10-07 | 40 |
| 2026-10-06 | 10 |
| 2026-10-05 | 40 |
| 2026-10-03 | 25 |
| 2026-10-02 | 25 |
| 2026-10-01 | 25 |
| 2026-09-30 | 25 |
| 2026-09-29 | 25 |
| 2026-09-28 | 25 |
| 2026-09-26 | 40 |
| 2026-09-25 | 40 |
| 2026-09-24 | 40 |
| 2026-09-23 | 40 |
| 2026-09-21 | 60 |
| 2026-09-20 | 10 |
| 2026-09-19 | 60 |
| 2026-09-18 | 40 |
| 2026-09-16 | 60 |
| 2026-09-15 | 25 |
| 2026-09-13 | 40 |
| 2026-09-11 | 40 |
| 2026-09-10 | 40 |
| 2026-09-08 | 40 |
| 2026-09-07 | 60 |
| 2026-09-06 | 40 |
| 2026-09-05 | 10 |
| 2026-09-04 | 25 |
| 2026-09-03 | 40 |
| 2026-09-02 | 25 |
| 2026-09-01 | 25 |
| 2026-08-31 | 10 |
| 2026-08-30 | 25 |
| 2026-08-28 | 40 |
| 2026-08-27 | 60 |
| 2026-08-26 | 25 |
| 2026-08-25 | 60 |
| 2026-08-24 | 10 |
| 2026-08-23 | 25 |
| 2026-08-22 | 10 |
| 2026-08-21 | 60 |
| 2026-08-20 | 25 |
| 2026-08-19 | 40 |
| 2026-08-18 | 40 |
| 2026-08-17 | 10 |
| 2026-08-16 | 60 |
| 2026-08-15 | 10 |
| 2026-08-14 | 40 |
| 2026-08-11 | 25 |
| 2026-08-09 | 25 |
| 2026-08-08 | 40 |
| 2026-08-07 | 25 |
| 2026-08-06 | 40 |
| 2026-08-05 | 25 |
| 2026-08-04 | 40 |
| 2026-08-02 | 10 |
| 2026-08-01 | 40 |
| 2026-07-31 | 40 |
| 2026-07-30 | 40 |
| 2026-07-29 | 40 |
| 2026-07-28 | 25 |
| 2026-07-27 | 40 |
| 2026-07-25 | 25 |
| 2026-07-24 | 25 |
| 2026-07-23 | 60 |
| 2026-07-22 | 60 |
| 2026-07-21 | 40 |
| 2026-07-20 | 10 |
| 2026-07-19 | 60 |
| 2026-07-18 | 10 |
| 2026-07-16 | 40 |
| 2026-07-15 | 40 |
| 2026-07-14 | 40 |
| 2026-07-13 | 25 |
| 2026-07-11 | 40 |
| 2026-07-09 | 40 |
| 2026-07-08 | 25 |
| 2026-07-07 | 40 |
| 2026-07-06 | 40 |
| 2026-07-05 | 10 |
| 2026-07-04 | 25 |
| 2026-07-03 | 40 |
| 2026-06-30 | 60 |
| 2026-06-29 | 10 |
| 2026-06-28 | 25 |
| 2026-06-26 | 40 |
| 2026-06-24 | 25 |
| 2026-06-23 | 25 |
| 2026-06-21 | 40 |
| 2026-06-20 | 10 |
| 2026-06-18 | 10 |
| 2026-06-17 | 25 |
| 2026-06-15 | 60 |
| 2026-06-14 | 60 |
| 2026-06-13 | 40 |
| 2026-06-12 | 60 |
| 2026-06-11 | 10 |
| 2026-06-10 | 25 |
| 2026-06-09 | 40 |
| 2026-06-07 | 25 |
| 2026-06-06 | 25 |
| 2026-06-04 | 60 |
| 2026-06-02 | 25 |
| 2026-06-01 | 60 |
| 2026-05-30 | 25 |
| 2026-05-29 | 40 |
| 2026-05-27 | 40 |
| 2026-05-26 | 40 |
| 2026-05-25 | 25 |
| 2026-05-24 | 25 |
| 2026-05-23 | 25 |
| 2026-05-22 | 60 |
| 2026-05-20 | 25 |
| 2026-05-18 | 40 |
| 2026-05-16 | 40 |
| 2026-05-15 | 60 |
| 2026-05-14 | 25 |
| 2026-05-12 | 40 |
| 2026-05-11 | 60 |
onSettle has fired 0 times. The prop can only calm this component further. The switch at the top of the page and your system setting still apply.
Why it moves this way
A contribution graph is a record. This is a record that reacts. The pop is small on purpose (28%): big enough to register at the edge of your vision, small enough to repeat every day for a year without getting tiresome.
Use it
npx shadcn@latest add @kosh-pro/streak-heatmapimport { StreakHeatmap } from "@/kosh/streak-heatmap/streak-heatmap";
const [days, setDays] = useState<StreakDay[]>(initialDays);
<StreakHeatmap data={days} weeks={26} showCount />
// Log today: a new array with one more day
setDays([...days, { date: "2026-11-05", value: 40 }]);Streak Heatmap is part of Kosh Pro. Your license key unlocks the @kosh-pro registry, which installs it with the motion core it needs. Set up the Pro registry ↗ Get Kosh Pro ↗
At each motion level
full- The logged cell pops (1 → 1.28 → 0.94 → 1, 320 ms) and sends out a ring (600 ms). Its signal colour cools to the data colour on the next update. When a new week starts, the grid slides one column.
reduced- The cell does not scale and the ring does not grow. The ring fades in place and the signal colour still cools.
none- The cell simply has its new colour.
Props
| Prop | Type | Default | What it does |
|---|---|---|---|
data | { date: string; value: number }[] | required | One entry per day, ISO dates. A value of 0, or a missing day, means not logged. |
weeks | number | 26 | Columns to show. |
thresholds | [number, number, number] | quarters of the largest value | Upper bounds for intensity levels 1 to 3. Above the last is level 4. |
weekStartsOn | 0 | 1 | 1 | 0 for Sunday, 1 for Monday. |
endDate | string | latest date in data | The last day of the grid. The component never reads the clock, so server and browser always agree. |
showCount | boolean | false | Shows the current streak above the grid with a Flow Number. |
countLabel | string | "day streak" | Text after the count. |
label | string | built from the data | The accessible description of the grid. |
showTable | boolean | false | Adds a “View as table” disclosure listing every logged day shown. |
enter | boolean | false | If the grid is off screen at load, its columns fade in as it scrolls into view. |
| Prop | Type | Default | What it does |
|---|---|---|---|
motion | "auto" | "full" | "reduced" | "none" | "auto" | Motion for this component only. The calmest of this prop, the provider and the operating system wins. |
tone | "ink" | "signal" | "muted" | "ink" | Which colour carries the data. |
onSettle | () => void | none | Called once the component has come to rest after an update. |
className | string | none | Added to the root element. |
Theme with CSS variables on any ancestor: --k-heatmap-cell, --k-heatmap-gap, --k-heatmap-radius, --k-level-1 … --k-level-4.
Accessibility
- The grid is one image to a screen reader, not 182 cells. Its label gives the streak and the range, and showTable adds the same days as a real table.
- Empty days are an outline, not a faint fill, so colour strength is not the only sign of “nothing”.
- If you log days on a timer, give people a pause control.
Limits and differences
- More than seven new days in one update is treated as a new dataset and does not animate. This is deliberate: 180 cells popping at once is not an update.
- A fresh cell cools when the next update arrives, not on a timer.