react-arborist 2.0.0-rc.2 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +8 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -78,6 +78,10 @@ function App() {
78
78
  }
79
79
  ```
80
80
 
81
+ <img width="214" alt="image" src="https://user-images.githubusercontent.com/3460638/198098015-d7dc6400-6391-4094-9f66-0f56a99433e9.png">
82
+
83
+ [Demo](https://codesandbox.io/s/the-simplest-tree-7tbedw)
84
+
81
85
  ### Customize the Appearance
82
86
 
83
87
  We provide our own dimensions and our own `Node` component.
@@ -112,6 +116,10 @@ function Node({ node, style, dragHandle }) {
112
116
  }
113
117
  ```
114
118
 
119
+ <img width="166" alt="image" src="https://user-images.githubusercontent.com/3460638/198100281-594a492d-2ea0-4ff0-883d-1dd79dbb5acd.png">
120
+
121
+ [Demo](https://codesandbox.io/s/customize-appearance-f4g15v?file=/src/App.tsx)
122
+
115
123
  ### Control the Tree data
116
124
 
117
125
  Here we use the _data_ prop to make the tree a controlled component. We must handle all the data modifications ourselves using the props below.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-arborist",
3
- "version": "2.0.0-rc.2",
3
+ "version": "2.0.0",
4
4
  "license": "MIT",
5
5
  "source": "src/index.ts",
6
6
  "main": "dist/index.js",