Treemap
CoreA squarified treemap: click to drill and the tiles grow to fill the view, with a breadcrumb back and metrics that morph every tile.
pnpm dlx shadcn@latest add https://wui.alann.works/r/treemap.jsonAPI Reference
| Prop | Type | Default |
|---|---|---|
data* | TreemapNode | required |
label* | string | required |
formatValue | (value: number) => string | — |
colorLabel | string | — |
formatColor | (value: number) => string | — |
colorDomain | [number, number] | — |
focus | string | — |
defaultFocus | string | — |
onFocusChange | (id: string) => void | — |
height | number | — |
emptyLabel | string | — |
ref | Ref<HTMLElement> | — |
className | string | — |