AsterUIDocsv1.0.2

Docs / Component reference

CalendarHeatmap

See a run of activity one day at a time. A darker cell represents a different intensity within the supplied dataset.

Calendar heatmap example

Install

sh
npx @fierst/ui@1.0.2 add calendar-heatmap

Registry dependencies: theme.

Exports from ./ui/calendar-heatmap: CalendarHeatmap.

Download the registry source for calendar-heatmap 1.0.2.

API contracts

ts
export function CalendarHeatmap({
  values,
  label = 'Activity heatmap',
  class: extraClass,
}: {
  /** Array of { date, count } entries (typically 7 * weeks). */
  values: readonly { date: string; count: number }[];
  label?: string;
  class?: string;
})