balkan-orgchart-react 9.1.66 → 9.1.67

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.67"
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
-
36
- ```javascript
37
- import OrgChart from "balkan-orgchart-react";
38
- ```
39
34
 
40
35
 
41
- ## Usage
36
+ ## Declarative Usage
42
37
 
43
38
  ```react
44
39
 
40
+
41
+ import {OrgChart, Employee} from "balkan-orgchart-react";
42
+
43
+ function App() {
44
+ return (
45
+ <>
46
+ <OrgChart nodeBinding={{ field_0: 'name', field_1: 'title', img_0: 'photo'}} template="olivia">
47
+ <Employee name='Denny Curtis' title='CEO' photo="https://cdn.balkan.app/shared/a/2.jpg" >
48
+ <Employee name='Lexie Cole' title='QA Lead' photo="https://cdn.balkan.app/shared/a/3.jpg"></Employee>
49
+ <Employee name='Janae Barrett' title='Technical Director' photo="https://cdn.balkan.app/shared/a/4.jpg"></Employee>
50
+ <Employee name='Aaliyah Webb' title='Assistant' photo="https://cdn.balkan.app/shared/a/5.jpg" assistant={true}></Employee>
51
+ </Employee>
52
+ </OrgChart>
53
+ </>
54
+ )
55
+ }
56
+
57
+ export default App
58
+
45
59
  ```
46
60
 
61
+
62
+
63
+
47
64
  <br>
48
65
 
49
66
  <br>