File size: 1,474 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
---
title: Chakra 3.22 - TreeView Is Here
description: "Introducing the Tree View component"
type: release
version: "3.22"
authors: ["sage"]
publishedAt: "2025-07-07"
---

We've just shipped Chakra UI v3.22! This release introduces the
**[Tree View](/docs/components/tree-view)** component, along with quality
improvements to make building with Chakra even smoother.

## Tree View

The Tree View component is a versatile component that allows users to display
hierarchical data in a tree structure.

### Basic Usage

The basic tree view provides a tree structure with nested items.

<ExampleTabs name="tree-view-basic" />

### Async Loading

Lazy loading is a feature that allows the tree view to load children of a node
on demand (or async). This helps to improve the initial load time and memory
usage.

<ExampleTabs name="tree-view-async" />

## Other Improvements

### Clipboard

- Fix issue where `clipboardAnatomy` was not exported from
  `@chakra-ui/react/anatomy`

### Combobox

- Expose `reason` to `onOpenChange` and `onInputValueChange` callbacks
- Expose `api.clearHighlightedValue` function to clear highlighted value

### Toast

- Fix issue where toast `title` or `description` could not accept React element

### Select

- Select highlighted item only if it exists in the collection
- Expose `api.clearHighlightedValue` function to clear highlighted value

## Upgrading

To upgrade to the latest version, run:

```bash
npm install @chakra-ui/react@latest
```