{"id":16384777,"url":"https://github.com/saber2pr/rc-tree","last_synced_at":"2026-01-15T22:28:27.998Z","repository":{"id":49510159,"uuid":"198074589","full_name":"Saber2pr/rc-tree","owner":"Saber2pr","description":":heavy_plus_sign: a tree-select renderer for react.","archived":false,"fork":false,"pushed_at":"2024-03-04T10:38:46.000Z","size":516,"stargazers_count":0,"open_issues_count":9,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-09T15:36:37.360Z","etag":null,"topics":["react","tree-selection"],"latest_commit_sha":null,"homepage":"https://saber2pr.github.io/rc-tree/example/index.html","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Saber2pr.png","metadata":{"files":{"readme":"ReadMe.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-07-21T15:37:59.000Z","updated_at":"2023-12-09T12:20:49.000Z","dependencies_parsed_at":"2024-10-28T15:24:33.897Z","dependency_job_id":"c892bdc3-9cfc-44df-a026-ad9437416c80","html_url":"https://github.com/Saber2pr/rc-tree","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Saber2pr%2Frc-tree","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Saber2pr%2Frc-tree/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Saber2pr%2Frc-tree/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Saber2pr%2Frc-tree/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Saber2pr","download_url":"https://codeload.github.com/Saber2pr/rc-tree/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246933384,"owners_count":20857055,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["react","tree-selection"],"created_at":"2024-10-11T04:12:19.449Z","updated_at":"2026-01-15T22:28:27.971Z","avatar_url":"https://github.com/Saber2pr.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @saber2pr/rc-tree\n\n\u003e a tree-select renderer for react.\n\n```bash\nyarn add @saber2pr/rc-tree\n```\n\n# What\n\n[example\u003e\u003e](https://saber2pr.github.io/rc-tree/example/index.html)\n\n```tsx\nimport Tree from \"@saber2pr/rc-tree\";\n\nconst tree = {\n  path: \"root\",\n  name: \"root\",\n  children: [\n    {\n      path: \"root/node\",\n      name: \"node\",\n      children: [\n        {\n          path: \"root/node/node.md\",\n          name: \"node\",\n          text: \"node\\n\"\n        }\n      ]\n    }\n  ]\n};\n\nconst App = () =\u003e (\n  \u003cTree from={tree} map={node =\u003e \u003ca href={node.path}\u003e{node.name}\u003c/a\u003e} /\u003e\n);\n\nReactDOM.render(\u003cApp /\u003e, document.getElementById(\"root\"));\n\n// map depth\nconst TreeSelect = (\n  \u003cTree\n    from={tree}\n    map={(node, depth) =\u003e (\n      \u003ca style={{ color: depth \u003e 1 ? \"red\" : \"green\" }}\u003e{node.name}\u003c/a\u003e\n    )}\n  /\u003e\n);\n```\n\n# dev\n\n```bash\nyarn install\n\nyarn run dev\n\nyarn run build\n```\n\n# Author\n\nsaber2pr\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaber2pr%2Frc-tree","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsaber2pr%2Frc-tree","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaber2pr%2Frc-tree/lists"}