Skip to content
StackD
Activity, the StackD component

Cards · €7

Activity

A grid of days, darker for busier ones, with a lens under the cursor. Switch to 3D and every day rises into a bar.

Pay once on Gumroad: the download, plus a licence key for the registry and the MCP server.

Details

Category
Cards
Plan
Paid, €7 once
Code
React + Tailwind, TypeScript · 337 lines
Files
ActivityGrid.tsx
Needs
React and Tailwind only
Agents
MCP server and shadcn registry

About

A grid of days, one square per day, darker for busier days. Move over it and the days near the cursor lift toward you like under a lens, and the day you're on shows its date and count.

Switch to 3D and the grid tilts back while every day grows into a bar of its real height, one week after another. Drag to turn it; let go and it settles back. Underneath: active days, the busiest day and the longest streak.

Drawn with CSS 3D (each day is a small box), no canvas and no other libraries. Any colour, white or black card. React + Tailwind. Respects reduced motion.

Install

Once: add the StackD registry to components.json, with the licence key from your receipt in STACKD_LICENSE_KEY (in .env.local):

"registries": {
  "@stackd": {
    "url": "https://www.stackd.codes/r/{name}.json",
    "headers": { "X-License-Key": "${STACKD_LICENSE_KEY}" }
  }
}

With the shadcn CLI:

npx shadcn@latest add @stackd/activity-grid

Or let your agent add it through the StackD MCP server:

claude mcp add --transport http stackd https://www.stackd.codes/mcp

Prompt for your agent

Paste it into Claude Code, Cursor, Codex or VS Code once the MCP server is connected.

Add the StackD Activity component to this project. Use the StackD MCP server: call get_component with { "name": "activity-grid" }, write the files at the paths it gives and install any npm packages it lists. Then use it where it fits, following its README for the props, and keep its own styles. It is a paid component: if the server says it needs a licence, tell me where to buy it.

Use

  1. Copy ActivityGrid.tsx into your project (for example components/).
  2. Give it your days:
import { ActivityGrid } from './components/ActivityGrid'

const days = [
  { date: '2026-11-15', count: 4 },
  { date: '2026-11-16', count: 0 },
  { date: '2026-11-17', count: 12 },
]

<ActivityGrid data={days} unit="commits" />

Dates are YYYY-MM-DD, oldest first. Missing days count as 0. The grid ends on the last day you give. Without data it shows demo days, handy for a first look.

In Next.js the file already starts with 'use client'. In other React setups that line does nothing.

Options

PropDefaultWhat it does
datademo days{ date, count }[]
weeks26How many weeks to show
title'Activity'Text at the top
unit'commits'What a count is called: "sales", "workouts"…
colorthe inkThe busiest days. Quieter days mix it with the card
theme'light''light' (white card) or 'dark'
defaultView'flat''flat' or '3d'

Performance

Only busy days get a 3D box, and every animation moves with transform alone, so the browser doesn't recalculate the layout while the bars rise. 26 weeks run smoothly; for a whole year, test on the slowest device you care about.

Colours from StackD

White #FFFFFF · Ink #141310 · Wine #901919 · Olive #6C8544 · Ochre #BE9344 · Lilac #C9B8FF

Licence

You can use it in personal and commercial projects. Don't resell or share the component on its own.

Made by StackD · stackd.codes