https://github.com/saber2pr/rc-tree
:heavy_plus_sign: a tree-select renderer for react.
https://github.com/saber2pr/rc-tree
react tree-selection
Last synced: 2 months ago
JSON representation
:heavy_plus_sign: a tree-select renderer for react.
- Host: GitHub
- URL: https://github.com/saber2pr/rc-tree
- Owner: Saber2pr
- Created: 2019-07-21T15:37:59.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2024-03-04T10:38:46.000Z (over 1 year ago)
- Last Synced: 2025-03-09T15:36:37.360Z (3 months ago)
- Topics: react, tree-selection
- Language: TypeScript
- Homepage: https://saber2pr.github.io/rc-tree/example/index.html
- Size: 504 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 9
-
Metadata Files:
- Readme: ReadMe.md
Awesome Lists containing this project
README
# @saber2pr/rc-tree
> a tree-select renderer for react.
```bash
yarn add @saber2pr/rc-tree
```# What
[example>>](https://saber2pr.github.io/rc-tree/example/index.html)
```tsx
import Tree from "@saber2pr/rc-tree";const tree = {
path: "root",
name: "root",
children: [
{
path: "root/node",
name: "node",
children: [
{
path: "root/node/node.md",
name: "node",
text: "node\n"
}
]
}
]
};const App = () => (
{node.name}} />
);ReactDOM.render(, document.getElementById("root"));
// map depth
const TreeSelect = (
(
1 ? "red" : "green" }}>{node.name}
)}
/>
);
```# dev
```bash
yarn installyarn run dev
yarn run build
```# Author
saber2pr