Streak Calendar

Streak calendar showing a 28-day grid in seven columns, with active days filled in accent. Useful for habit tracking, learning apps and activity views.

src/registry/ui/streak-calendar.tsx/r/streak-calendar.json

Installation#

bash
npx shadcn@latest add @minidev/streak-calendar

MiniDev UI is in the shadcn registry directory, so the short form works with no setup. Older CLI versions can use the full URL: npx shadcn@latest add https://ui.minidev.pro/r/streak-calendar.json

Usage#

tsx
import { StreakCalendar } from "@/components/ui/streak-calendar"

export function Example() {
  return (
    <StreakCalendar />
  )
}

API reference#

StreakCalendar props
PropTypeDefault
activenumber[][1, 2, 3, 5, 8, 9, 10, 12, 15, 16]
classNamestring-

Examples#

All dashboard components