n-tree

Display and manage hierarchical data structures with interactive tree components.

8|3|Updated Mar 13, 2026
One-click install
npx skills add https://github.com/jiaiyan/naive-ui-skills --skill n-tree
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: n-tree
Source: https://github.com/jiaiyan/naive-ui-skills/tree/main/components/n-tree
Command: npx skills add https://github.com/jiaiyan/naive-ui-skills --skill n-tree

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Managing and visualizing hierarchical data structures in UI requires a versatile, interactive tree component. n-tree provides a robust solution for rendering nested nodes with selection, checkboxes, drag-and-drop, async loading, searching, and efficient navigation.

Core Features & Use Cases

  • Interactive tree with selection, checkable nodes, and multi-select support.
  • Drag-and-drop to rearrange nodes and support for async loading of children.
  • Virtual scrolling for large trees, custom key/label fields, and programmable rendering hooks.
  • Common use cases include file explorers, org charts, category selectors, and structured navigation menus.

Quick Start

Create a basic tree with a few nodes, enable selection and drag-and-drop, and observe how it handles expansion and search.

Frequently Asked Questions about n-tree

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I display hierarchical data with an interactive tree component?

Display hierarchical data with an interactive tree component by rendering nested nodes that support expansion, selection, checkboxes, and drag-and-drop rearrangement for file explorers or org charts.

Does naive-ui support virtual scrolling for large hierarchical trees?

Naive-ui supports virtual scrolling for large hierarchical trees, ensuring efficient rendering and navigation performance when displaying extensive nested node structures.

Can I implement async loading for child nodes in a hierarchical data tree?

You can implement async loading for child nodes in a hierarchical data tree to dynamically fetch and append nested structures upon user interaction, reducing initial load times.

What is the best way to add drag-and-drop rearrangement to a tree component?

The best way to add drag-and-drop rearrangement to a tree component is using a built-in draggable feature that updates hierarchical data structures when users visually reorder nodes.

How do I enable pattern search within hierarchical tree data?

Enable pattern search within hierarchical tree data to filter and highlight matching nodes dynamically, allowing users to quickly locate specific entries within large nested structures.

Can I customize node rendering in a hierarchical tree for specific UI requirements?

You can customize node rendering in a hierarchical tree using programmable rendering hooks, allowing you to override default labels and define custom key fields for specific UI requirements.