{"id":13436634,"url":"https://github.com/swiftcarrot/react-ui-tree","last_synced_at":"2026-06-23T20:55:29.935Z","repository":{"id":31086011,"uuid":"34645041","full_name":"swiftcarrot/react-ui-tree","owner":"swiftcarrot","description":"React tree component with  drag \u0026 drop","archived":false,"fork":false,"pushed_at":"2020-11-25T05:31:25.000Z","size":454,"stargazers_count":755,"open_issues_count":46,"forks_count":191,"subscribers_count":18,"default_branch":"master","last_synced_at":"2026-05-24T09:08:48.646Z","etag":null,"topics":["draggable","javascript","react","tree"],"latest_commit_sha":null,"homepage":"https://swiftcarrot.github.io/react-ui-tree/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/swiftcarrot.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-04-27T03:59:32.000Z","updated_at":"2026-04-05T16:25:15.000Z","dependencies_parsed_at":"2022-07-12T13:51:56.144Z","dependency_job_id":null,"html_url":"https://github.com/swiftcarrot/react-ui-tree","commit_stats":null,"previous_names":["pqx/react-ui-tree"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/swiftcarrot/react-ui-tree","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swiftcarrot%2Freact-ui-tree","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swiftcarrot%2Freact-ui-tree/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swiftcarrot%2Freact-ui-tree/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swiftcarrot%2Freact-ui-tree/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/swiftcarrot","download_url":"https://codeload.github.com/swiftcarrot/react-ui-tree/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swiftcarrot%2Freact-ui-tree/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34706579,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-23T02:00:07.161Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["draggable","javascript","react","tree"],"created_at":"2024-07-31T03:00:50.865Z","updated_at":"2026-06-23T20:55:29.897Z","avatar_url":"https://github.com/swiftcarrot.png","language":"JavaScript","funding_links":[],"categories":["Uncategorized","JavaScript"],"sub_categories":["Uncategorized"],"readme":"# react-ui-tree\n\n[![Build Status](https://travis-ci.org/pqx/react-ui-tree.svg)](https://travis-ci.org/pqx/react-ui-tree)\n[![npm](https://img.shields.io/npm/v/react-ui-tree.svg)](https://www.npmjs.com/package/react-ui-tree)\n[![npm](https://img.shields.io/npm/dm/react-ui-tree.svg)](https://www.npmjs.com/package/react-ui-tree)\n\nReact tree component\n\nThis project was initially developed for a webpage builder. It maintains an\ninternal tree structure within the component through\n[js-tree](https://github.com/wangzuo/js-tree).\n\n### Demo\n\n[swiftcarrot.github.io/react-ui-tree/](swiftcarrot.github.io/react-ui-tree/)\n\n### Installation\n\n```sh\nnpm install react-ui-tree --save\n```\n\n### Usage\n\n```javascript\n\u003cTree\n  paddingLeft={20}              // left padding for children nodes in pixels\n  tree={this.state.tree}        // tree object\n  onChange={this.handleChange}  // onChange(tree) tree object changed\n  renderNode={this.renderNode}  // renderNode(node) return react element\n/\u003e\n\n// a sample tree object\n// node.children, node.collapsed, node.leaf properties are hardcoded\n{\n  \"module\": \"react-ui-tree\",\n  \"children\": [{\n    \"collapsed\": true,\n    \"module\": \"dist\",\n    \"children\": [{\n      \"module\": \"node.js\"\n    }]\n  }]\n}\n```\n\ncheck [app.js](https://github.com/pqx/react-ui-tree/blob/master/example/app.js)\nfor a working example\n\n### Development\n\n* npm install\n* npm start\n* http://localhost:8080/example\n\n### License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswiftcarrot%2Freact-ui-tree","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fswiftcarrot%2Freact-ui-tree","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswiftcarrot%2Freact-ui-tree/lists"}