react-formio-engine 1.0.0 → 1.0.3
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 +7 -7
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
#
|
|
1
|
+
# react-formio-engine
|
|
2
2
|
|
|
3
3
|
React functional components for form rendering and building, powered by [formiojs](https://github.com/formio/formio.js). Drop-in replacement for `@formio/react` and `@converselabs/react-formio` with no class components.
|
|
4
4
|
|
|
5
5
|
## Install
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
|
-
npm install
|
|
8
|
+
npm install react-formio-engine
|
|
9
9
|
```
|
|
10
10
|
|
|
11
11
|
## Quick Start
|
|
12
12
|
|
|
13
13
|
```jsx
|
|
14
|
-
import { Form } from '
|
|
14
|
+
import { Form } from 'react-formio-engine';
|
|
15
15
|
import 'bootstrap/dist/css/bootstrap.css';
|
|
16
16
|
import 'formiojs/dist/formio.full.css';
|
|
17
17
|
|
|
@@ -47,7 +47,7 @@ function App() {
|
|
|
47
47
|
## Form Renderer
|
|
48
48
|
|
|
49
49
|
```jsx
|
|
50
|
-
import { Form } from '
|
|
50
|
+
import { Form } from 'react-formio-engine';
|
|
51
51
|
|
|
52
52
|
<Form
|
|
53
53
|
src={formSchema} // Form JSON schema
|
|
@@ -62,7 +62,7 @@ import { Form } from '@preshin/react-formio-engine';
|
|
|
62
62
|
## Form Builder
|
|
63
63
|
|
|
64
64
|
```jsx
|
|
65
|
-
import { FormBuilder } from '
|
|
65
|
+
import { FormBuilder } from 'react-formio-engine';
|
|
66
66
|
|
|
67
67
|
<FormBuilder
|
|
68
68
|
form={{ display: 'form', components: [] }}
|
|
@@ -83,7 +83,7 @@ import { FormBuilder } from '@preshin/react-formio-engine';
|
|
|
83
83
|
## Custom Components
|
|
84
84
|
|
|
85
85
|
```jsx
|
|
86
|
-
import { createFormComponent,
|
|
86
|
+
import { createFormComponent, Formio } from 'react-formio-engine';
|
|
87
87
|
|
|
88
88
|
const MyColorPicker = createFormComponent({
|
|
89
89
|
type: 'colorpicker',
|
|
@@ -101,7 +101,7 @@ Formio.registerComponent('colorpicker', MyColorPicker);
|
|
|
101
101
|
## Theme Provider
|
|
102
102
|
|
|
103
103
|
```jsx
|
|
104
|
-
import { FormEngineProvider, Form } from '
|
|
104
|
+
import { FormEngineProvider, Form } from 'react-formio-engine';
|
|
105
105
|
|
|
106
106
|
<FormEngineProvider theme="antd">
|
|
107
107
|
<Form src={schema} />
|
package/package.json
CHANGED