balkan-orgchart-react 9.1.66 → 9.1.68

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/package.json +1 -1
  2. package/readme.md +23 -6
package/package.json CHANGED
@@ -54,5 +54,5 @@
54
54
  "url": "git+https://github.com/BALKANGraph/OrgChartReact.git"
55
55
  },
56
56
  "dependencies": {},
57
- "version": "9.1.66"
57
+ "version": "9.1.68"
58
58
  }
package/readme.md CHANGED
@@ -31,19 +31,36 @@ or with yarn:
31
31
  yarn add balkan-orgchart-react
32
32
  ```
33
33
 
34
- ## Import it in your code
35
34
 
36
- ```javascript
37
- import OrgChart from "balkan-orgchart-react";
38
- ```
39
35
 
36
+ ## Declarative Usage
37
+
38
+ ```js
39
+
40
+
41
+ import {OrgChart, Employee} from "balkan-orgchart-react";
40
42
 
41
- ## Usage
43
+ function App() {
44
+ return (
45
+ <>
46
+ <OrgChart nodeBinding={{ field_0: 'name', field_1: 'title' }} >
47
+ <Employee name='Denny Curtis' title='CEO'>
48
+ <Employee name='Lexie Cole' title='QA Lead'></Employee>
49
+ <Employee name='Janae Barrett' title='Technical Director'></Employee>
50
+ <Employee name='Aaliyah Webb' title='Assistant' assistant={true}></Employee>
51
+ </Employee>
52
+ </OrgChart>
53
+ </>
54
+ )
55
+ }
42
56
 
43
- ```react
57
+ export default App
44
58
 
45
59
  ```
46
60
 
61
+
62
+
63
+
47
64
  <br>
48
65
 
49
66
  <br>