AIMCP Server and Agent Skills included

React TreeView for nested data, now easier to build with AI

Show folders, categories, or org charts as nodes with expand and collapse, tri-state checkboxes, drag and drop, inline editing, templates, load on demand, and virtualization. AI assistants set it up for you from the current docs.

  • 4.5/5850+ G2 reviews
  • 4.6/5950+ Capterra reviews
  • WCAG 2.2and Section 508
  • Virtualizationfor large trees
  • Tri-statecheckboxes

Trusted by the world’s leading companies

Syncfusion customers include Visa, Apple, McDonald’s, Netflix, Starbucks, IBM, Tesla, and Schneider Electric

Now easier with AI

Build TreeViews faster with AI

Coding assistants write the TreeView setup from the current docs instead of guessing.

01For developers

Describe a hierarchy and get code that uses the documented API

The Syncfusion MCP server and Agent Skills give assistants in VS Code, Cursor, and JetBrains the current TreeView docs and recommended patterns.

See all 35 features

AI coding assistantMCP · Syncfusion React

Show my folders and files as a tree.

search_docs“React TreeView hierarchical data binding” · 2 doc sections

+<TreeViewComponent

+ fields={{ dataSource: folders, id: 'id',

+ text: 'name', child: 'children' }} />

Documented API: fields, dataSource, child

ResultRendered in your app

AI coding assistantMCP · Syncfusion React

Load employees from my OData service and their orders on expand.

search_docs“React TreeView remote data and load on demand” · 2 doc sections

+const data = new

+ DataManager({ url: SERVICE_URL, adaptor: new ODataV4Adaptor() });

+<TreeViewComponent

+ fields={{ dataSource: data, id: 'EmployeeID',

+text: 'FirstName', hasChildren: 'EmployeeID'

+ }} loadOnDemand={true} />

Documented API: DataManager, hasChildren, loadOnDemand

ResultRendered in your app

AI coding assistantMCP · Syncfusion React

Add checkboxes so checking a region checks all its cities.

search_docs“React TreeView tri-state checkboxes” · 2 doc sections

+<TreeViewComponent fields={fields} showCheckBox={true}

+ autoCheck={true} checkedNodes={['2', '5']} />

Documented API: showCheckBox, autoCheck, checkedNodes

ResultRendered in your app

AI coding assistantMCP · Syncfusion React

Let users drag files into other folders.

search_docs“React TreeView drag and drop” · 2 doc sections

+<TreeViewComponent fields={fields}

+ allowDragAndDrop={true}

+ nodeDropped={onDrop} />

Documented API: allowDragAndDrop, nodeDropped

ResultRendered in your app

AI coding assistantMCP · Syncfusion React

Let users rename folders but not the root folder.

search_docs“React TreeView node editing” · 2 doc sections

+<TreeViewComponent fields={fields} allowEditing={true}

+ nodeEditing={onNodeEditing} />

Documented API: allowEditing, nodeEditing

ResultRendered in your app

AI coding assistantMCP · Syncfusion React

Let users select several team members at once.

search_docs“React TreeView multiple selection” · 2 doc sections

+<TreeViewComponent fields={fields}

+ allowMultiSelection={true}

+ selectedNodes={['3', '7']} />

Documented API: allowMultiSelection, selectedNodes

ResultRendered in your app

AI coding assistantMCP · Syncfusion React

Show a folder or file icon beside every node.

search_docs“React TreeView icons and images” · 2 doc sections

+<TreeViewComponent

+ fields={{ dataSource: files, id: 'id', text: 'name',

+child: 'subChild', iconCss: 'icon', imageUrl: 'image'

+ }} />

Documented API: iconCss, imageUrl

ResultRendered in your app

AI coding assistantMCP · Syncfusion React

Show each mail folder with an unread count badge.

search_docs“React TreeView node templates” · 2 doc sections

+const nodeTemplate = (data) => (

+<div>{data.name} <span className="badge">

+ {data.count}</span></div>

);

+<TreeViewComponent fields={fields}

+ nodeTemplate={nodeTemplate} />

Documented API: nodeTemplate

ResultRendered in your app

Performance

Large trees stay fast

Virtualization renders only the nodes in view, and load on demand fetches child nodes when users expand a parent.

Virtualization
Only visible nodes render
Load on demand
On by default
Remote data
DataManager with OData and Web API
Fewer DOM elements
Lower memory and CPU use
How virtualization works

Features in depth

React TreeView features in depth

Open a demo to try each one, or the docs to see the API.

Data binding: hierarchical, self-referencing, and remote

Map your data with the fields property: nested arrays use child, and flat records use parentID and hasChildren. Remote services bind through a DataManager with OData, Web API, or URL adaptors.

Load on demand and virtualization

Load on demand is on by default, so only first-level nodes load until a parent expands. Set enableVirtualization with a fixed height to render only visible nodes in large trees.

Tri-state checkboxes

Set showCheckBox to add checkboxes. Parents show a partial state when some children are checked, autoCheck links or separates parent and child states, and checkedNodes gets or sets what is checked.

Drag and drop at every level

Set allowDragAndDrop to move nodes as siblings or children, to another TreeView, or to an external container. With multiple selection on, users drag several nodes at once.

Node editing with validation

Set allowEditing so users rename nodes with a double-click or F2, and the data source updates. The nodeEditing event validates or cancels a rename.

Single and multiple selection

Select a node by mouse or keyboard, or set allowMultiSelection to pick several with Ctrl and Shift. The selectedNodes property gets or sets the selection.

Icons, images, and node templates

Show icons or images beside nodes for a file system look, or render each node from a nodeTemplate with photos and extra fields.

Sorting, text wrap, and level styling

Sort nodes ascending or descending with sortOrder, wrap long text with allowTextWrap, and style nodes by level or with htmlAttributes. Custom expand and collapse icons are supported.

Tooltips and context menus

Bind a tooltip field to show details on hover. Pair the TreeView with a context menu to add, remove, or rename nodes with a right-click.

Accessible, localized, with themes

Keyboard commands select, expand, and edit nodes without a mouse, with WAI-ARIA tree roles for screen readers. Right-to-left layouts and Tailwind 3, Bootstrap 5, Material 3, Fluent 2, and High Contrast themes are included.

Get started

Get your first TreeView running, with or without AI

With an AI coding assistant

  1. Connect the Syncfusion MCP serverWorks in VS Code, Cursor, JetBrains, and other MCP-compatible assistants.Set up the MCP server
  2. Add Agent Skills to your projectYour agent follows Syncfusion’s recommended TreeView patterns.Install Agent Skills
  3. Describe the TreeViewCopy this prompt to start.

    Add a Syncfusion React TreeView to my project explorer with folders and files, icons, tri-state checkboxes, drag and drop, inline renaming, and load on demand.

By hand, in three steps

1 · Install

npm install @syncfusion/ej2-react-navigations @syncfusion/ej2-tailwind3-theme --save

2 · src/App.css

@import '../node_modules/@syncfusion/ej2-tailwind3-theme/styles/treeview/index.css';

3 · src/App.tsx

import { TreeViewComponent } from '@syncfusion/ej2-react-navigations';
import './App.css';

const folders = [
  { id: 1, name: 'Documents', expanded: true, children: [{ id: 2, name: 'Report.pdf' }, { id: 3, name: 'Budget.xlsx' }] },
  { id: 4, name: 'Pictures', children: [{ id: 5, name: 'Logo.svg' }] },
];

export default function App() {
  return <TreeViewComponent fields={{ dataSource: folders, id: 'id', text: 'name', child: 'children' }} showCheckBox={true} />;
}
Read the getting started guide

Works withReact 15.5.4 or laterTypeScript and JavaScriptNext.jsRemixGatsbyVitePreactSystem requirements

Customer reviews

Trusted by developers and teams

G2

4.5/5

From 850+ reviews of Essential Studio®

Read the reviews on G2

“Awesome, enough said”

Easy usability, solving real-life problems, easy to implement. Most of the cases have the operators and settings possibilities you need right away.

Oliver O.Creative and Art Direction, Small Business

“A giant framework with great pricing options”

I have loved the components and options that Syncfusion has; besides, its documentation, demos, and support are excellent.

Alejandro Javier V.CEO, Small Business
75%
lower costs
50%
faster development

Customer story · Igniatek

Igniatek cuts development time 50% and costs 75% with Essential Studio®

“I would definitely recommend Syncfusion for anyone who is trying to develop something meaningful.”

Somnath Maji, Founder, Igniatek Consultancy

Award-winning

Including the 2026 Devies Award, Capterra Shortlist 2026, Software Advice FrontRunners 2026, and G2 Best Software 2025.

Recent industry awards won by Syncfusion

Complete feature list

Every TreeView feature, included in the license

  • Every feature includedNo separate enterprise edition
  • Royalty-freeNo runtime or deployment fees
  • Weekly patchesPlus regular feature releases
  • Expert supportFrom Syncfusion engineers

Related components:React Tree GridReact Dropdown TreeReact File Manager

Questions and answers

React TreeView FAQ

What is the React TreeView?

The Syncfusion React TreeView shows hierarchical data, such as folders or categories, as nodes that users expand, collapse, select, check, and rearrange. Explore the demos

How do I add a TreeView in React?

Install @syncfusion/ej2-react-navigations and the Tailwind 3 theme, import the treeview theme CSS, and render TreeViewComponent with a fields object that maps your data. The getting started section on this page shows each step. Read the getting started guide

What is the difference between the TreeView and the Tree Grid?

Use the TreeView for a navigable list of nodes with one label each, such as a folder tree. Use the Tree Grid when each node has several columns to sort, filter, and edit. React Tree Grid

Which data structures does it support?

Nested arrays, where each node holds its children in a child field, and flat self-referencing records linked by parentID. Both can be local or remote. Read about data binding

Can the tree load child nodes from the server?

Yes. Bind remote data with a DataManager, and loadOnDemand, which is on by default, loads child nodes only when their parent expands. Remote data demo

How does the TreeView handle large trees?

Set enableVirtualization and a fixed height, and only the nodes in view render. Load on demand also keeps first loads small. Virtualization demo

How do tri-state checkboxes work?

Set showCheckBox. Checking a parent checks its children, and a parent shows a partial state when only some children are checked. autoCheck turns this link off. Checkbox demo

Can users drag nodes to another tree or container?

Yes. With allowDragAndDrop, users move nodes within the tree, and drop events let you move them into another TreeView or an external container. Drag and drop demo

Can users rename nodes?

Yes. Set allowEditing so users rename nodes with a double-click or F2, and use the nodeEditing event to validate the new text. Node editing demo

Can I customize how nodes look?

Yes. Add icons or images through the fields mapping, or render each node from a nodeTemplate with any markup. Template demo

Is the React TreeView accessible?

Yes. It meets WCAG 2.2 and Section 508, uses WAI-ARIA tree roles, and supports keyboard navigation and right-to-left layouts. Read about accessibility

Can AI coding assistants build with the React TreeView?

Yes. The Syncfusion MCP server and Agent Skills give assistants in VS Code, Cursor, and JetBrains the current TreeView docs and recommended patterns. You need a Syncfusion API key and an active license, which can be a commercial, Community, or trial license. Set up the MCP server

Is the Syncfusion React TreeView free?

It is a commercial component with a 30-day free trial. A free Community License is available for companies and individuals with less than $1 million USD in annual gross revenue, five or fewer developers, and 10 or fewer total employees. Check Community License eligibility

Syncfusion React TreeView

Build your React TreeViews faster with AI

The full TreeView, the MCP server, and Agent Skills, free for 30 days.

  • No credit card required
  • Free Community License for eligible teams
  • No runtime or deployment fees