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.
AIMCP Server and Agent Skills included
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.
Trusted by the world’s leading companies
Now easier with AI
Coding assistants write the TreeView setup from the current docs instead of guessing.
01For developers
The Syncfusion MCP server and Agent Skills give assistants in VS Code, Cursor, and JetBrains the current TreeView docs and recommended patterns.
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
Virtualization renders only the nodes in view, and load on demand fetches child nodes when users expand a parent.
Features in depth
Open a demo to try each one, or the docs to see the API.
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.
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.
Show icons or images beside nodes for a file system look, or render each node from a nodeTemplate with photos and extra fields.
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.
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.
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
With an AI coding assistant
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} />;
}
Works withReact 15.5.4 or laterTypeScript and JavaScriptNext.jsRemixGatsbyVitePreactSystem requirements
Customer reviews
“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.
“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.
Customer story · Igniatek
“I would definitely recommend Syncfusion for anyone who is trying to develop something meaningful.”
Somnath Maji, Founder, Igniatek Consultancy
Including the 2026 Devies Award, Capterra Shortlist 2026, Software Advice FrontRunners 2026, and G2 Best Software 2025.
Complete feature list
Showing all 35 features. Each one opens its demo or documentation.
No feature matches that search. Try another word, or open the TreeView demos.
Related components:React Tree GridReact Dropdown TreeReact File Manager
Questions and answers
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
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
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
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
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
Set enableVirtualization and a fixed height, and only the nodes in view render. Load on demand also keeps first loads small. Virtualization demo
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
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
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
Yes. Add icons or images through the fields mapping, or render each node from a nodeTemplate with any markup. Template demo
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
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
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
Resources
TreeView for other frameworks:AngularJavaScriptVue
More React components:Tree GridDropdown TreeFile ManagerAll 140+ React components
Syncfusion React TreeView
The full TreeView, the MCP server, and Agent Skills, free for 30 days.