# TreeMapLeaves (@salmonui/charts/tree-map)

> The TreeMapLeaves interface of @salmonui/charts/tree-map.

Canonical: https://salmonui.dev/docs/reference/charts/tree-map/TreeMapLeaves

```ts
import type { TreeMapLeaves } from '@salmonui/charts/tree-map';
```

Entry index: https://salmonui.dev/docs/reference/charts/tree-map (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/charts/tree-map.md).

## Reference

Kind: interface

```ts
interface TreeMapLeaves {
    readonly labelField?: string | undefined;
    readonly format?: Intl.NumberFormatOptions | ((value: number) => string) | undefined;
    readonly labelPosition?: TreeMapLabelPosition | undefined;
    readonly labelOverflow?: 'trim' | 'hide' | 'wrapWord' | 'wrap' | undefined;
    readonly render?: ((item: TreeMapItem) => ReactNode) | undefined;
    readonly gap?: number | undefined;
    readonly showValue?: boolean | undefined;
}
```

Members (7):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `labelField` | `readonly labelField?: string \| undefined;` | optional |  |
| `format` | `readonly format?: Intl.NumberFormatOptions \| ((value: number) => string) \| undefined;` | optional | Value format in the label and tooltip. |
| `labelPosition` | `readonly labelPosition?: TreeMapLabelPosition \| undefined;` | optional |  |
| `labelOverflow` | `readonly labelOverflow?: 'trim' \| 'hide' \| 'wrapWord' \| 'wrap' \| undefined;` | optional |  |
| `render` | `readonly render?: ((item: TreeMapItem) => ReactNode) \| undefined;` | optional | HTML content laid over the leaf instead of the drawn label. |
| `gap` | `readonly gap?: number \| undefined;` | optional | Gap between leaves, px. Default 1. |
| `showValue` | `readonly showValue?: boolean \| undefined;` | optional | Show `label value` instead of the label alone. |
