@keysdown/form-wrapper 0.0.6 → 0.0.7

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 +22 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -12,6 +12,28 @@
12
12
  npm install @keysdown/form-wrapper --save
13
13
  ```
14
14
 
15
+ ## Importing
16
+
17
+ ```js
18
+ import {createForm} from '@keysdown/form-wrapper'
19
+
20
+ const form = ref(createForm({
21
+ first_name: null,
22
+ last_name: null,
23
+ username: null
24
+ }))
25
+
26
+ // Or
27
+
28
+ import FormWrapper from '@keysdown/form-wrapper'
29
+
30
+ const form = ref(new FormWrapper({
31
+ first_name: null,
32
+ last_name: null,
33
+ username: null
34
+ }))
35
+ ```
36
+
15
37
  ## Basic example
16
38
 
17
39
  Basic example using Vue.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@keysdown/form-wrapper",
3
- "version": "0.0.6",
3
+ "version": "0.0.7",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist/*"