Arihant jain

Market Heatmap

Component 10

About

A squarified treemap chart that sizes tiles by market cap (or weight) and colors them on a diverging red-to-green scale to visualize price change across a set of assets or sectors.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Market Heatmap to your project and fits it to your theme.

Code

How Market Heatmap is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

"use client";

import MarketHeatmap from "@/components/ui/market-heatmap";

export default function MarketHeatmapDemo() {
  return (
    <div className="w-full max-w-2xl">
      <MarketHeatmap />
    </div>
  );
}

More by Arihant jain

View all
  • Footer section

    Footer section

    1.9K
  • Multistep Form

    Multistep Form

    710
  • Animated Drawer

    Animated Drawer

    695
  • Status Badge

    Status Badge

    514
  • Stacked Circular Footer

    Stacked Circular Footer

    427
  • Input Modal

    Input Modal

    330
  • Large Name Footer

    Large Name Footer

    199
  • Profile Dropdown

    Profile Dropdown

    196

Explore more

Part of Spectrum UI — browse the full library on 21st.dev.