Components (172)
Tree View
Reusable Clean-style UI component built on Base UI and Tailwind CSS v4.
Loading Tree View…
Usage
import { TreeView } from "ui-kit/components/tree-view";Props
| Prop | Type | Default | Description |
|---|---|---|---|
items* | TreeNode[] | — | — |
expanded | string[] | — | — |
defaultExpanded | string[] | — | — |
onExpandedChange | (expanded: string[]) => void | — | — |
selected | string | null | — | — |
defaultSelected | string | null | null | — |
onSelect | (id: string, node: TreeNode) => void | — | — |
guides | boolean | true | — |
emptyText | string | "Empty" | — |
aria-label | string | — | — |
aria-labelledby | string | — | — |
className | string | — | — |