Skip to content

Component gallery

  1. Content
  2. Heatmap

Primitives

  • Buttons30
  • Badges21
  • Keys4
  • Status8
  • Avatars8
  • Alerts4
  • Cards10
  • Dropdowns4
  • Corner windows3
  • Dialogs7
  • Windows4
  • Taskbar1
  • Launcher1
  • Desk icons1
  • Progress8
  • Scroll cues2

Forms

  • Toggles5
  • Selects3
  • Inputs8
  • Textareas7
  • Segmented controls4
  • Attachments18

Content

  • Quotes5
  • Stats5
  • Heatmap3
  • Icon lists2
  • Masonry2
  • Accordion2
  • Code8
  • Contact methods7

Chat

  • Messages22
  • Posts29

Showcase

  • Media cards4
  • Logos1
  • 88x31s15
  • Carousel3
  • Blueprint frames2
  • Card grids3

Media

  • Figures4
  • Audio player4
  • Media player3
  • Radio5
  • Shorts2

Toys

  • Terminal4
  • Destructor1
  • Status board7

Sections

  • Section3
  • Side hero2
  • Navbar5
  • Footer1
  • Sidebar2

Display

ThemeT
Mode
Mode
M
Style
Style
Y
Spacing
Spacing
Radius
Radius
Font size
Font size
Compare
Compare
Effects
S

ShortcutsAlt+Shift+key

Components

Primitives

  • Buttons30
  • Badges21
  • Keys4
  • Status8
  • Avatars8
  • Alerts4
  • Cards10
  • Dropdowns4
  • Corner windows3
  • Dialogs7
  • Windows4
  • Taskbar1
  • Launcher1
  • Desk icons1
  • Progress8
  • Scroll cues2

Forms

  • Toggles5
  • Selects3
  • Inputs8
  • Textareas7
  • Segmented controls4
  • Attachments18

Content

  • Quotes5
  • Stats5
  • Heatmap3
  • Icon lists2
  • Masonry2
  • Accordion2
  • Code8
  • Contact methods7

Chat

  • Messages22
  • Posts29

Showcase

  • Media cards4
  • Logos1
  • 88x31s15
  • Carousel3
  • Blueprint frames2
  • Card grids3

Media

  • Figures4
  • Audio player4
  • Media player3
  • Radio5
  • Shorts2

Toys

  • Terminal4
  • Destructor1
  • Status board7

Sections

  • Section3
  • Side hero2
  • Navbar5
  • Footer1
  • Sidebar2

Content · 3 of 8

Heatmap

Levels from 0 to 4 on a grid of any size, optionally as a calendar. Can play the Game of Life on its cells.

packages/ui/src/astro/blocks/heatmap/heatmap.astro3 stories

Preview settings
Width
Preview width
Stage
Stage
calendar
Props of calendar
<Heatmap columns={52} rows={7} values={[0, 2, 0, 0, …360 more]} until={"2026-10-10T00:00:00.000Z"} label="Commits over the last year">
    <span>2,236 contributions in the last year</span>
</Heatmap>
Open heatmap/calendar on its own
OctNovDecJanFebMarAprMayJunJulAugSep
MonWedFri
2,236 contributions in the last yearLessMore
small-secondary
Props of small-secondary
<Heatmap columns={20} rows={7} values={[0, 0, 0, 0, …136 more]} label="Commits over the last 20 weeks" tone="secondary" />
Open heatmap/small-secondary on its own
LessMore
lifeanimated
Props of life
<Heatmap columns={52} rows={7} values={[0, 2, 0, 0, …360 more]} until={"2026-10-10T00:00:00.000Z"} life label="A year of commits, playing the Game of Life" tone="success" />
Open heatmap/life on its own
OctNovDecJanFebMarAprMayJunJulAugSep
MonWedFri
LessMore
PreviousStatsNextIcon lists