UNPKG

react-activity-heatmap

Version:

A simple and customizable leetcode-style activity heatmap component for React.

19 lines (18 loc) 360 B
export type HeatmapActivity = { date: string; count: number; level: number; }; export type HeatmapCell = HeatmapActivity | "invisible"; export type HeatmapMonth = { name: string; start: Date; end: Date; }; export type CellColors = { level0: string; level1: string; level2: string; level3: string; level4: string; };