Componentcharts0.71 KB gzipZero dependencies
Heatmap
Grid of colored cells showing value intensities with diagonal stagger
Preview
Live Preview
Installation
Tokens guide →Add to your project via CLI (zero dependencies, code you own):
npx bigbullui add heatmapOr install the full npm package:
npm install bigbulluiUsage
tsx3 lines
import { Heatmap } from "@/components/ui/heatmap"; <Heatmap rows={rows} columns={7} />Source code
heatmap.tsx + 1 helperZero third-party dependencies (2 local files shown in tabs below).
tsxheatmap.tsx97 lines
"use client"; import * as React from "react";import { cn } from "./lib/utils"; export interface HeatmapRow { label: string; cells: { value: number }[];} export interface HeatmapProps extends React.HTMLAttributes<HTMLDivElement> { rows: HeatmapRow[]; columns?: number; height?: number;} export function Heatmap({ rows = [],Props
Interactive Prop Playground
Tweak parsed AST props below to generate ready-to-paste JSX.
tsx3 lines
import { Heatmap } from "@/components/ui/heatmap"; <Heatmap />| Prop | Type | Description |
|---|---|---|
| rows | HeatmapRow[] | Configures rows. (Default: []) |
| columns | number | Column definitions describing headers, cell keys, and sorting. (Default: 7) |
| height | number | Configures height. (Default: 300) |