Year Activity Grid
A contribution calendar that blooms in on a diagonal wave, lights a crosshair of the hovered weekday and week, floats a readout above the day and reports streaks. Fully arrow-key navigable.
Try it: Hover a day, or Tab in and use the arrow keys to walk the calendar.
Installation
Install with the shadcn CLI:
npx shadcn@latest add https://www.framekitui.live/r/year-activity-grid.jsonOr, with the @framekit namespace registered: npx shadcn@latest add @framekit/year-activity-grid. You can also copy the source into components/ui/year-activity-grid.tsx (view on GitHub).
Usage
import { YearActivityGrid } from '@/components/ui/year-activity-grid'Props
| Prop | Type | Default | Notes |
|---|---|---|---|
data | { date: string; count: number }[] | generated year | One entry per day (yyyy-mm-dd). Omit to render a deterministic generated year. |
endDate | string | Date | today | Last day shown. |
weeks | number | 53 | Week columns (12–53). |
tone | 'signal' | 'mint' | 'ember' | 'ink' | 'signal' | Colour ramp; level 0 is always neutral. |
title / unit | string | 'Shipping rhythm' / 'contributions' | Heading label and the noun used in the summary. |
seed | number | 7 | Seed for the generated demo data. |
onSelect | (day) => void | — | Fires when a day is clicked or activated. |
className | string | — | Extra classes merged onto the root. |
Related Portfolio components
- Bento Profile Board
Your profile as a living dashboard: identity with a pulsing build status, an analogue clock that follows your time zone, weather glyph, now-playing equaliser, visitor odometer, activity strip, stack…
- Dev Folio Template
A developer-flavoured one-pager composed from Framekit parts — terminal hero, skills marquee, hover-preview project index, scroll-drawn career timeline, skill meters, social dock, copy-email +…
- Scatter Desk Collage
A desk of rotated polaroids, sticky notes, UI clips, quote cards and a sticker that you can really move — the picked card straightens and lifts, arrow keys nudge, and “Tidy up” snaps everything to a…
- Studio Folio Template
A complete one-page designer portfolio composed from Framekit parts — intro preloader, kinetic name hero, spy-nav, impact stats, filterable work with lightbox, services, testimonials, contact form…
- Kudos Wall
Praise cards drift past in three columns at different speeds and directions behind a soft fade mask, with underlined key phrases and a cheer toggle on every card. Hover or focus pauses; a Pause…
- Scroll Reveal
A wrapper that animates its content in on scroll: seven effects (rise, fade, blur, scale, clip, slide-left/right), optional child staggering, any scroll container, and a no-motion fallback.