复制一段给 AI 编程工具的提示词,包含源码、依赖和用法
属性
HeatmapCalendarProps
同时支持以下类型的全部属性: Omit<React.ComponentProps<"div">, "children">
| 属性 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| data* 必填 | HeatmapDatum[] | — | — |
| endDate | string | HEATMAP_END_DATE | Last day shown (YYYY-MM-DD). Fixed by default so output is deterministic. |
| weeks | number | 53 | — |
| tone | HeatmapTone | "emerald" | — |
| unit | string | "contribution" | Singular unit name used in labels, e.g. "contribution" |
| title | string | "Activity calendar" | — |
安装
$ npx shadcn@latest add https://chromotion.dev/r/heatmap-calendar.json