Skip to content
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
HabitT10Tuesday, November 10, 2026W11Wednesday, November 11, 2026T12Thursday, November 12, 2026F13Friday, November 13, 2026S14Saturday, November 14, 2026S15Sunday, November 15, 2026M16Monday, November 16, 2026Streak
Warm up the voice3 days in a row
Read one article1 day in a row
Edit 10 minutes of audio0 days in a row
  • habits is a list of habits, each with an id and a name.
  • v-model:done holds the done days of each habit by id, as YYYY-MM-DD, such as { read: ["2026-11-15", "2026-11-16"] }. A click on a day adds it or removes it.
  • days sets the number of days to show (default 7). end sets the last day. With no end, 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". locale sets the language of the dates (default English).
  • Change the words with labels or a label pack: habit, streak, and the functions streakOf and mark.

Usage ​

ts
import { BlessHabitTracker } from "blessing-ui";

API ​

Props

NameTypeDefaultDescription
habits*BlessHabit[]—
daysnumber7the number of days to show
endstring—the last day to show, as YYYY-MM-DD; default: today of the reader
localestring"en"
labelsPartial<{ habit: string; streak: string; streakOf: (days: number) => string; mark: (habit: string, day: string) => string; }>—
doneRecord<string, string[]>{}the done days of each habit, by id

Events

NamePayloadDescription
update:done[value: Record<string, string[]>]

Released under the MIT License. Character names and artwork belong to their owners.