@arudovwen/form-builder-react 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 CHANGED
@@ -3,7 +3,7 @@
3
3
 
4
4
  The **Form Builder Package** is a reusable library designed to simplify the creation and management of dynamic forms in web applications. It provides a robust API and customizable components to streamline form-building workflows.
5
5
 
6
- **This package is still in development**
6
+ > **Note**: This package is still in development.
7
7
 
8
8
  ## Features
9
9
 
@@ -23,12 +23,14 @@ npm install @arudovwen/form-builder-react
23
23
 
24
24
  ## Demo
25
25
 
26
- Check out the live demo of the Form Builder Package: [Form Builder Demo](https://form-builder-inky-nine.vercel.app/),
27
- To view after saving: [Form Viewer](https://form-builder-inky-nine.vercel.app/viewer)
26
+ Explore the live demo of the Form Builder Package:
27
+ - [Form Builder Demo](https://form-builder-inky-nine.vercel.app/)
28
+ - [Form Viewer](https://form-builder-inky-nine.vercel.app/viewer)
28
29
 
29
30
  ## GitHub Repository
30
31
 
31
- Find the source code and contribute to the project on GitHub: [Form Builder GitHub Repository](https://github.com/arudovwen/Form.Builder)
32
+ Find the source code and contribute to the project on GitHub:
33
+ [Form Builder GitHub Repository](https://github.com/arudovwen/Form.Builder)
32
34
 
33
35
  ## Usage
34
36
 
@@ -73,7 +75,7 @@ function App() {
73
75
  <FormViewer
74
76
  onSubmit={(e: any) => console.log(e)}
75
77
  form_data={formData}
76
- anwserData={answerData}
78
+ answerData={[]}
77
79
  config={config}
78
80
  loading={loading}
79
81
  />
@@ -89,11 +91,12 @@ export default App;
89
91
  | Prop | Type | Description |
90
92
  |--------------|--------------------|--------------------------------------------------|
91
93
  | `form_data` | `FormElement[]` | Array of form elements to render in the form. |
92
- | `anwserData` | `any[]` | Array of user-provided answers to the form. |
94
+ | `answerData` | `any[]` | Array of user-provided answers to the form. |
93
95
  | `config` | `object` | Configuration object (e.g., `buttonColor`, `loaderColor`). |
94
96
  | `onSubmit` | `(data: any) => void` | Callback function triggered when the form is submitted. |
95
97
  | `loading` | `boolean` | Indicates whether the form is in a loading state. |
96
98
  | `isReadOnly` | `boolean` | Determines if the form is rendered in read-only mode. |
99
+ | `renderType` | `string` | Determines the style the form is rendered, either `multi` or `single`. |
97
100
 
98
101
  ### Form Element Types
99
102
 
@@ -113,8 +116,8 @@ To contribute or modify the package:
113
116
  1. Clone the repository:
114
117
 
115
118
  ```bash
116
- git clone https://github.com/your-username/form-builder.git
117
- cd form-builder
119
+ git clone https://github.com/arudovwen/Form.Builder.git
120
+ cd Form.Builder
118
121
  ```
119
122
 
120
123
  2. Install dependencies: