Skip to Content
UI Kit
Components (172)

Tree View

Reusable Clean-style UI component built on Base UI and Tailwind CSS v4.

Open preview
Loading Tree View…

Usage

import { TreeView } from "ui-kit/components/tree-view";

Props

PropTypeDefaultDescription
items*TreeNode[]——
expandedstring[]——
defaultExpandedstring[]——
onExpandedChange(expanded: string[]) => void——
selectedstring | null——
defaultSelectedstring | nullnull—
onSelect(id: string, node: TreeNode) => void——
guidesbooleantrue—
emptyTextstring"Empty"—
aria-labelstring——
aria-labelledbystring——
classNamestring——

On this page