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.
Files changed (2) hide show
  1. package/README.md +21 -17
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,36 +1,40 @@
1
- # neon-button
1
+ # Qureal Editor
2
2
 
3
- > Neon button for React app
3
+ > Official Qureal React Components
4
4
 
5
- [![NPM](https://img.shields.io/npm/v/neon-button.svg)](https://www.npmjs.com/package/neon-button) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)
5
+ ![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)
6
6
 
7
7
  ## Install
8
8
 
9
9
  ```bash
10
- npm install --save neon-button
10
+ npm install qureal-editor
11
11
  ```
12
12
 
13
- ![Neon Button Screenshow](https://raw.githubusercontent.com/shivampip/neon-button/master/ss.png)
14
-
15
13
  ## Usage
16
14
 
17
15
  ```jsx
18
- import React, { Component } from 'react'
19
-
20
- import NeonButton from 'neon-button'
16
+ import React from "react";
17
+ import { QurealViewer } from "qureal-editor";
21
18
 
22
- class Example extends Component {
23
- render () {
19
+ function App() {
24
20
  return (
25
- <NeonButton
26
- text='Neon Button'
27
- color= "#34ebb7"
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)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qureal-editor",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "description": "Official Qureal React components",
5
5
  "author": "shivampip",
6
6
  "license": "MIT",