{"repo":"react-component/tree","free":true,"listed":false,"github":"https://github.com/react-component/tree","clone":"git clone https://github.com/react-component/tree.git","description":"🌳 Accessible tree view primitives for React, maintained in the Ant Design ecosystem.","language":"TypeScript","stars":1274,"topics":["ant-design","antd","javascript","react","react-component"],"license":"MIT","category":"ui-components","readme_excerpt":"@rc-component/tree Part of the Ant Design ecosystem. 🌳 Accessible tree view primitives for React, maintained in the Ant Design ecosystem. English 简体中文 Highlights - Controlled and uncontrolled expansion, selection, checking, drag and drop, and async loading. - Virtual scrolling for large trees through @rc-component/virtual-list . - TypeScript definitions for tree data, node props, and event payloads. Install Usage Examples Run the local dumi site: Then open http://localhost:8000 . API Tree props name description type default --- --- --- --- autoExpandParent whether auto expand parent treeNodes bool false checkable whether support checked bool/React Node false checkedKeys Controlled checked treeNodes(After setting, defaultCheckedKeys will not work). Note: parent and children nodes are associated, if the parent node's key exists, it all children node will be checked, and vice versa. When set checkable and checkStrictly, it should be an object, which contains checked array and halfChecked array. String[]/{checked:Array ,halfChecked:Array } [] checkStrictly check node precisely, parent and children nodes are not associated bool false className additional css class of root dom node String '' defaultCheckedKeys default checked treeNodes String[] [] defaultExpandedKeys expand specific treeNodes String[] [] defaultExpandAll expand all treeNodes bool false defaultExpandParent auto expand parent treeNodes when init bool true defaultSelectedKeys default selected treeNodes String[] [] di","default_branch":null,"files":null,"tree":[],"storefront":"/r/react-component","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/react-component/tree/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}