Skip to Content
Kokonut UI

CD-10Cards

Activity Terrain

A contribution heatmap that tilts up into a 3D terrain you can turn, built with React and canvas.

Install with
no extra packages

PROOnboarding Checklist and more like it are in Kokonut UI Pro

Installation

Activity Terrain is a free, open-source React component in the Kokonut UI Cards collection. Add it with the shadcn CLI, which copies the source into components/kokonutui/activity-terrain.tsx, so the code is yours to change.

npx shadcn@latest add @kokonutui/activity-terrain

Usage

import ActivityTerrain from "@/components/kokonutui/activity-terrain";

export default function Example() {
  return <ActivityTerrain />;
}

Props

data
number[]Default built-in

Count per day, oldest first.

endDate
stringDefault "2026-10-11"

The day of the last value, as YYYY-MM-DD.

title
stringDefault "Activity"
defaultFlat
booleanDefault false

Start in the flat, heatmap view.

className
string

Extra classes for the root element.

Dependencies

NeedsVersionComes from
cn from lib/utils.tsshadcn init
React19Your app
Tailwind CSS4Your app

No provider, font or global CSS to set up: the file works as soon as it lands.