# react-component/tree

🌳 Accessible tree view primitives for React, maintained in the Ant Design ecosystem.

Repository: https://github.com/react-component/tree
Canonical: https://ross.abutalabs.com/products/tree
Homepage: https://react-component.github.io/tree
Language: TypeScript
License: MIT
License Family: permissive
Topics: ant-design, antd, javascript, react, react-component
Last push: 2026-08-24T13:03:49+00:00

## Health v2 (maintenance only)
Score: 98/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 99, release rhythm 96, longevity 100
- inputs: {"age_days": 4166, "days_push": 9, "days_rel": 27, "gap_med": 6.0, "n_releases_24m": 25}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1273, forks 487 (observed 2026-08-28T04:04:12.301896+00:00)

## What it is
@rc-component/tree is a React component library providing accessible tree view primitives, maintained as part of the Ant Design ecosystem. It supports controlled and uncontrolled expansion, selection, checking, drag-and-drop, async node loading, and virtual scrolling for rendering large hierarchical datasets.

## Use cases
- render a file explorer tree in react
- hierarchical checkbox selection in react
- lazy-load tree nodes from an api
- drag and drop tree nodes to reorder
- virtualized tree for thousands of nodes
- accessible tree view with keyboard navigation
- controlled expand and select state for a tree

## When to choose
- you need a headless or lightly-styled tree primitive to build custom tree UIs in React
- you are already in the Ant Design ecosystem and want a tree consistent with antd behavior
- you need virtual scrolling, async loading, drag-and-drop, or checkable trees out of the box
- accessibility and TypeScript definitions for tree data are important

## When to avoid
- you need a fully styled, batteries-included component set rather than a single tree primitive (use antd's Tree directly)
- your project is not React-based
- you need tree views outside the browser, e.g. native desktop or mobile widgets

## Facets
- artifact type: library
- maturity: active
- function: ui-components, frontend-framework, accessibility
- domain: web-development, frontend, developer-tools
- platform: browser
- tags: react, tree-view, ant-design, antd, typescript, virtual-scrolling, drag-and-drop, async-loading, checkbox-tree, component-library, rc-component, hierarchical-data, nodejs, web-server

## Member repositories
- react-component/tree (main) score 98

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:12.301896+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T05:03:13.617456+00:00, confidence not recorded.
  - readme: https://github.com/react-component/tree (fetched 2026-08-28T04:04:12.301896+00:00, sha 9d687d3d996c)
  - homepage: https://react-component.github.io/tree (fetched 2026-08-29T12:14:31.989948+00:00, sha 18aebea2cbc9)
- Data as of 2026-08-30T08:39:29.467469+00:00.
