Tree View
A nested, keyboard-navigable list of rows built from plain data, with expand/collapse chevrons and indent guides.
tsx
import { TreeView, type TreeNode } from "@pestoui/core"Nested data
Pass a TreeNode[]. Rows with children get a chevron; defaultExpanded lists the ids open on mount.
Controlled selection
Arrow keys walk the visible rows, Left/Right collapse and expand, Enter or Space activates.
Selected: spreadsheets
Small, without guides
size="sm" tightens the rows for dense sidebars; showGuides={false} drops the vertical indent rules.
Props
Pesto UI · 117 documented components