Tree view preview
A keyboard-navigable hierarchy with controlled expansion, selection and optional native actions.
pro · Navigation · composite
When to use
- Use it when a page needs a keyboard-navigable hierarchy with controlled expansion, selection and optional native actions.
- Choose it as the nav region when composing a page from independently reusable TidalUI sections.
Alternatives
- Choose navigation-bar instead when responsive saas navigation with native links, actions and an in-flow mobile disclosure is the actual interface need, rather than tree view.
Configure components.json and the @tidal-pro namespace before installing Pro components.
Installation
npx shadcn@latest add @tidal-pro/tree-viewImport components/ui/tidal.css, components/ui/tree-view.css. Wrap installed components in tidal-scope.
Preview

Minimal example
import"./components/ui/tidal.css";
import"./components/ui/tree-view.css";
import{TidalTreeView}from"./components/ui/tree-view";
export default()=><div className="tidal-scope"><TidalTreeView expandedIds={["example"]} label={"Demo"} nodes={[{id:"example",label:"Demo",textValue:"Demo"}]} onExpandedChange={() => {}} onSelectedChange={() => {}} selectedId={"example"}/></div>;API and props
TidalTreeView.expandedIds (required)ReadonlyArray<string>Required expanded ids value accepted by this exported component.
TidalTreeView.label (required)stringRequired label value accepted by this exported component.
TidalTreeView.nodes (required)ReadonlyArray<TidalTreeNode>Required nodes value accepted by this exported component.
TidalTreeView.onExpandedChange (required)(expandedIds: readonly string[], node: TidalTreeNode, event: TidalTreeInteractionEvent | ReactMouseEvent<HTMLButtonElement>) => voidCallback invoked when the expanded change interaction is proposed.
TidalTreeView.onSelectedChange (required)(selectedId: string, node: TidalTreeNode, event: TidalTreeInteractionEvent) => voidCallback invoked when the selected change interaction is proposed.
TidalTreeView.selectedId (required)string | nullRequired selected id value accepted by this exported component.
TidalTreeView.dir"ltr" | "rtl" | undefinedOptional dir value accepted by this exported component.
TidalTreeView.disabledboolean | undefinedOptional disabled value accepted by this exported component.
TidalTreeView.emptyMessageReactNodeOptional empty message value accepted by this exported component.
TidalTreeView.labelsPartial<TidalTreeViewLabels> | undefinedOptional labels value accepted by this exported component.
Complete usage
Full example, stylesheet imports, API and accessibility documentation
Gotchas
- Install the declared registry dependencies and render inside a tidal-scope with the foundation stylesheet loaded.