Data & Charts
Treemap
Treemap for the parts of a hierarchy: squarified, nested with group headers, or as an icicle.
Usage
Installation
Treemap comes with WunderUI Core and Pro, in the package from your plan. See the plans.
Then import what you need:
import {
TreemapChart,
TreemapChartProps,
TreemapChartVariant,
} from "@wunderui/react"Examples
Basic Treemap
Nested Treemap
Icicle
State – Loading
State – Hover
In context
How the component is used inside real screens — the same compositions as the Usage section of the Figma page.
Revenue by Line
Nested treemap of revenue with the top lines.
API Reference
Theming
The CSS variables this component reads. Set one on any wrapper to restyle everything inside it. More in Theming.