Tree View
A production-scale, light + dark Tree View component. Copy-paste via the CLI; you own the code.
npx lerpa-cli add tree-viewLive preview available in the gallery.
Usage
import { TreeView } from "@lerpa/ui";
<TreeView />Props
| Prop | Type | Default | Description |
|---|---|---|---|
| nodes | TreeNode[] | — | |
| defaultExpanded | string[] | — | |
| onSelect | (id: string) => void | — | |
| className | string | — |
Accessibility
- Keyboard accessible interactive elements.
- Respects prefers-reduced-motion where animated.
- Color is never the only signal.