CD-10Cards
Activity Terrain
A contribution heatmap that tilts up into a 3D terrain you can turn, built with React and canvas.
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-terrainUsage
import ActivityTerrain from "@/components/kokonutui/activity-terrain";
export default function Example() {
return <ActivityTerrain />;
}Props
datanumber[]Default built-inCount per day, oldest first.
endDatestringDefault "2026-10-11"The day of the last value, as YYYY-MM-DD.
titlestringDefault "Activity"defaultFlatbooleanDefault falseStart in the flat, heatmap view.
classNamestringExtra classes for the root element.
Dependencies
| Needs | Version | Comes from |
|---|---|---|
cn from lib/utils.ts | shadcn init | |
| React | 19 | Your app |
| Tailwind CSS | 4 | Your app |
No provider, font or global CSS to set up: the file works as soon as it lands.

