Treemap

Treemap: A squarified treemap: click to drill and the tiles grow to fill the view, with a breadcrumb back and metrics that morph every tile. Free MIT React & Next.js source with Motion and Tailwind CSS, live preview, CLI install and docs.

Install Treemap

npx motion-ui-skill add treemap

Components install as source into your project. The interactive page also includes preview, code, documentation and install tabs.

Dependencies

  • clsx
  • motion
  • react
  • tailwind-merge

Source files

Treemap

A squarified treemap: click to drill and the tiles grow to fill the view, with a breadcrumb back and metrics that morph every tile.

Install

npx motion-ui-skill add treemap

Dependencies

  • clsx
  • motion
  • react
  • tailwind-merge

Usage

"use client";

import { Treemap as Treemap } from "@/components/motion/treemap";

export function Example() {
  return (
    <div className="p-6">
      <Treemap />
    </div>
  );
}

Browse this category