A shadcn-style tree view component built with Ark UI primitives.

Tree

package.json
README.md

Installation

npx shadcn@latest add @ark-cn/tree-view

Usage

import * as TreeView from "@/components/ui/tree-view"

Read exported parts in src/components/ui/tree-view.tsx and compose the primitive according to the Ark UI pattern for this component.

Examples

Basic

Tree

package.json
README.md

Checkbox

Checkbox Tree

package.json
README.md

Mutation

Mutation Tree

package.json
README.md

Rename

Rename Node (Press F2)

package.json
README.md

Filtering

package.json
README.md

Virtualized

node_modules
src
package.json
README.md

Showing 4 visible nodes with virtual windowing.

API reference

This component mirrors the upstream Ark UI primitive.

See the ARK UI documentation for the full API.

Accessibility

See the Ark UI documentation for clarification.