Componentcharts0.71 KB gzipZero dependencies

Heatmap

Grid of colored cells showing value intensities with diagonal stagger

Preview

Live Preview
Open ↗

Installation

Tokens guide →

Add to your project via CLI (zero dependencies, code you own):

npx bigbullui add heatmap

Or install the full npm package:

npm install bigbullui

Usage

tsx3 lines
import { Heatmap } from "@/components/ui/heatmap"; <Heatmap rows={rows} columns={7} />

Source code

heatmap.tsx + 1 helper

Zero 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 />
PropTypeDescription
rowsHeatmapRow[]Configures rows. (Default: [])
columnsnumberColumn definitions describing headers, cell keys, and sorting. (Default: 7)
heightnumberConfigures height. (Default: 300)