Heat Calendar
Preview
Install
Add it with your package manager, or copy the source manually.
Run it in a project set up with shadcn-vue. The source is copied to components/beui and its dependencies are added to your package.json. Read the shadcn-vue guide
Download the release archive to your project root, then install the local file.
Import the shared styles once in your application.
API Reference
HeatCalendar
unit?stringNoun after every count, e.g. "commits", "ships".
—weeks?numberNumber of week columns.
16maxCount?numberCount a cell at intensity 1 stands for; a cell reads `intensity × maxCount`.
14values?readonly (readonly number[])[]`values[week][day]` intensities in 0..1, seven days per week. Missing values are zero.
—endDate?DateLast UTC calendar day of the grid. Defaults to today after mount; explicit dates render identically in every timezone.
—color?stringThe single hue. Any CSS color; magnitude maps to its strength, never to a second color.
var(--beui-accent, oklch(72% 0.18 195))class?string—v-model:selection?HeatCalendarSelection | nullControlled selection; null clears it. Cell coordinates are zero-based week/day (Monday first).
undefineddefaultSelection?HeatCalendarSelection | null—labels?Partial<HeatCalendarMessages>Override any built-in string.
—@selection-change?(range: HeatCalendarProps['selection']) => void—#default?slotCompose `HeatCalendarGrid` (with `HeatCalendarTooltip` inside) and `HeatCalendarLegend`; omit it for the complete chart.
—HeatCalendarGrid
class?string—#default?slotOverlay content rendered inside the grid, normally `HeatCalendarTooltip`.
—HeatCalendarLegend
class?string—HeatCalendarTooltip
class?string—#default?{ data: HeatCalendarTooltipData }Custom tooltip content for the hovered cell, or the span being previewed.
—Updated