Not affiliated with official shadcn/ui. Visit ui.shadcn.com for official docs.
React Table Block Heatmap Cells
Table component with color-intensity heatmap cells for visualizing data density in React dashboards
Looking to implement shadcn/ui blocks?
Join our Discord community for help from other developers.
Visualize data patterns on your Next.js analytics dashboard with this heatmap table component. Features color-intensity cells based on values, gradient scale from light to dark, row and column headers, hover tooltips with exact values, and legend showing value ranges. Built with shadcn/ui Table component using Tailwind CSS and dynamic background colors. The pattern-revealing design surfaces insights instantly—perfect for sales by region, time-based analytics, resource utilization grids, or any React app needing matrix-style data visualization.
Weekly Traffic Pattern
Visitor count by hour and day
| Time | Mon | Tue | Wed | Thu | Fri | Sat | Sun | Total |
|---|---|---|---|---|---|---|---|---|
| 12 AM | 2 | 1 | 3 | 2 | 1 | 8 | 12 | 29 |
| 3 AM | 1 | 0 | 1 | 1 | 0 | 4 | 6 | 13 |
| 6 AM | 15 | 18 | 14 | 16 | 12 | 8 | 5 | 88 |
| 9 AM | 45 | 52 | 48 | 55 | 42 | 25 | 18 | 285 |
| 12 PM | 62 | 58 | 65 | 60 | 55 | 42 | 35 | 377 |
| 3 PM | 58 | 55 | 52 | 58 | 48 | 38 | 32 | 341 |
| 6 PM | 35 | 32 | 38 | 34 | 28 | 45 | 48 | 260 |
| 9 PM | 22 | 18 | 24 | 20 | 15 | 52 | 55 | 206 |
| Total | 240 | 234 | 245 | 246 | 201 | 222 | 211 | 1599 |
Hover over cells to see detailed information
Installation
Related blocks you will also like
Table with Sparkline Charts
Inline trend visualization
Table with Comparison View
Side-by-side data
Table with Summary Footer
Aggregate totals
Table with Density Toggle
Adjust cell sizing
Table with Export Options
Export heatmap data
Table with Quick Filters
Filter data ranges