Calm motion: animations on this site only fade, with no movement
Habit tracker
A grid of days for each habit, with checks and the streak
Shows which days a person did each habit, and how many days in a row they kept it. A click on a day marks it. For a whole year of activity, use the heatmap calendar.
Basic
| Habit | T10Tuesday, November 10, 2026 | W11Wednesday, November 11, 2026 | T12Thursday, November 12, 2026 | F13Friday, November 13, 2026 | S14Saturday, November 14, 2026 | S15Sunday, November 15, 2026 | M16Monday, November 16, 2026 | Streak |
|---|---|---|---|---|---|---|---|---|
| Warm up the voice | 3 days in a row | |||||||
| Read one article | 1 day in a row | |||||||
| Edit 10 minutes of audio | 0 days in a row |
habitsis a list of habits, each with anidand aname.v-model:doneholds the done days of each habit by id, asYYYY-MM-DD, such as{ read: ["2026-11-15", "2026-11-16"] }. A click on a day adds it or removes it.dayssets the number of days to show (default 7).endsets the last day. With noend, the last day is the today of the reader, and the grid shows after the page loads.- The streak counts the days in a row that are done, back from the last day. If the last day is not done yet, the count starts on the day before, so a streak does not break in the morning.
- Each day is a native check box. Its name says the habit and the date, such as "Read one article, Monday, November 16".
localesets the language of the dates (default English). - Change the words with
labelsor a label pack:habit,streak, and the functionsstreakOfandmark.
Usage
ts
import { BlessHabitTracker } from "blessing-ui";API
Props
| Name | Type | Default | Description |
|---|---|---|---|
habits* | BlessHabit[] | — | |
days | number | 7 | the number of days to show |
end | string | — | the last day to show, as YYYY-MM-DD; default: today of the reader |
locale | string | "en" | |
labels | Partial<{ habit: string; streak: string; streakOf: (days: number) => string; mark: (habit: string, day: string) => string; }> | — | |
done | Record<string, string[]> | {} | the done days of each habit, by id |
Events
| Name | Payload | Description |
|---|---|---|
update:done | [value: Record<string, string[]>] |