qureal-editor 1.0.7 → 1.0.8
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.
- package/README.md +21 -17
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,36 +1,40 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Qureal Editor
|
|
2
2
|
|
|
3
|
-
>
|
|
3
|
+
> Official Qureal React Components
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+

|
|
6
6
|
|
|
7
7
|
## Install
|
|
8
8
|
|
|
9
9
|
```bash
|
|
10
|
-
npm install
|
|
10
|
+
npm install qureal-editor
|
|
11
11
|
```
|
|
12
12
|
|
|
13
|
-

|
|
14
|
-
|
|
15
13
|
## Usage
|
|
16
14
|
|
|
17
15
|
```jsx
|
|
18
|
-
import React
|
|
19
|
-
|
|
20
|
-
import NeonButton from 'neon-button'
|
|
16
|
+
import React from "react";
|
|
17
|
+
import { QurealViewer } from "qureal-editor";
|
|
21
18
|
|
|
22
|
-
|
|
23
|
-
render () {
|
|
19
|
+
function App() {
|
|
24
20
|
return (
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
21
|
+
<QurealViewer
|
|
22
|
+
slug="test_21"
|
|
23
|
+
onFormSubmit={(form_data)=>{
|
|
24
|
+
console.log("Data filled in form", form_data);
|
|
25
|
+
}}
|
|
26
|
+
style={{
|
|
27
|
+
width: "800px",
|
|
28
|
+
height: "90vh",
|
|
29
|
+
border: "1px solid black"
|
|
30
|
+
}}
|
|
31
|
+
/>
|
|
32
|
+
);
|
|
31
33
|
}
|
|
32
34
|
```
|
|
33
35
|
|
|
36
|
+
For efficieny in case of multiple creations rendering, do not destroy the component, just update slug prop.
|
|
37
|
+
|
|
34
38
|
## License
|
|
35
39
|
|
|
36
40
|
MIT © [shivampip](https://github.com/shivampip)
|