Activity
GraphActivity
GitHub-style contribution grid. Pass dated counts; weeks, months, and intensity are derived.
Command
pnpm dlx shadcn@latest add <origin>/r/graph-activity.jsonYear
Dated counts. The grid, month labels, and intensity scale are derived.
SepOctNovDecJanFebMarAprMayJunJulAugSep
MWF
774 contributions
LessMore
Quarter
Shorter range. glyphs="ascii" swaps the block characters for .- =#@.
JunJulAug
MWF
Jun – Aug
LessMore
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| title | string | — | Caption drawn on the top edge of the frame. |
| days | ActivityDay[] | — | ISO date plus count. Gaps fill as empty days. |
| weekStartsOn | 0 | 1 | 0 | 0 is Sunday, like GitHub. 1 is Monday. |
| max | number | — | Lock the intensity scale. Defaults to the highest count. |
| legend | boolean | true | Less / more glyph key under the grid. |
| caption | string | false | — | Replaces the computed contribution total. Pass false to hide it. |
| glyphs | "shade" | "ascii" | "hash" | "bar" | string[] | "shade" | Character set. shade is ·░▒▓█. ascii is .- =#@. Pass a preset or your own characters. |
| palette | "mono" | "duo" | "multi" | "mono" | mono is one accent plus muted. duo paints the second series with --graph-accent-2. multi cycles three accents. |
| corner | string | "+" | Character at each corner of the frame. |
| className | string | — | Passed to the outer frame. |