update astro-reactive-form
This commit is contained in:
parent
56fe3cff05
commit
96802296ec
3 changed files with 11 additions and 10 deletions
14
package-lock.json
generated
14
package-lock.json
generated
|
@ -10,7 +10,7 @@
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"astro": "^1.2.6",
|
"astro": "^1.2.6",
|
||||||
"astro-github-stats": "^0.4.0",
|
"astro-github-stats": "^0.4.0",
|
||||||
"astro-reactive-form": "^0.1.1"
|
"astro-reactive-form": "^0.2.6"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@ampproject/remapping": {
|
"node_modules/@ampproject/remapping": {
|
||||||
|
@ -993,9 +993,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/astro-reactive-form": {
|
"node_modules/astro-reactive-form": {
|
||||||
"version": "0.1.1",
|
"version": "0.2.6",
|
||||||
"resolved": "https://registry.npmjs.org/astro-reactive-form/-/astro-reactive-form-0.1.1.tgz",
|
"resolved": "https://registry.npmjs.org/astro-reactive-form/-/astro-reactive-form-0.2.6.tgz",
|
||||||
"integrity": "sha512-E9AabXwZKpq+nevtdKK0IGKMdGW+AyvHRraKovMarxBnVCl9ypzXXQ1FRqxgczrd1vsNTeR95G8165T+oPahMA==",
|
"integrity": "sha512-wbC12kfwVscgUT+UvnR02iGgux86gpwdJ7KAcw47udb1GvcsRWv/1Wl7zaqrXLNwhp0LoxpksFn8LUW6MFso4A==",
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"astro": "^1.0.0"
|
"astro": "^1.0.0"
|
||||||
}
|
}
|
||||||
|
@ -6576,9 +6576,9 @@
|
||||||
"requires": {}
|
"requires": {}
|
||||||
},
|
},
|
||||||
"astro-reactive-form": {
|
"astro-reactive-form": {
|
||||||
"version": "0.1.1",
|
"version": "0.2.6",
|
||||||
"resolved": "https://registry.npmjs.org/astro-reactive-form/-/astro-reactive-form-0.1.1.tgz",
|
"resolved": "https://registry.npmjs.org/astro-reactive-form/-/astro-reactive-form-0.2.6.tgz",
|
||||||
"integrity": "sha512-E9AabXwZKpq+nevtdKK0IGKMdGW+AyvHRraKovMarxBnVCl9ypzXXQ1FRqxgczrd1vsNTeR95G8165T+oPahMA==",
|
"integrity": "sha512-wbC12kfwVscgUT+UvnR02iGgux86gpwdJ7KAcw47udb1GvcsRWv/1Wl7zaqrXLNwhp0LoxpksFn8LUW6MFso4A==",
|
||||||
"requires": {}
|
"requires": {}
|
||||||
},
|
},
|
||||||
"bail": {
|
"bail": {
|
||||||
|
|
|
@ -13,6 +13,6 @@
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"astro": "^1.2.6",
|
"astro": "^1.2.6",
|
||||||
"astro-github-stats": "^0.4.0",
|
"astro-github-stats": "^0.4.0",
|
||||||
"astro-reactive-form": "^0.1.1"
|
"astro-reactive-form": "^0.2.6"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,7 +2,8 @@
|
||||||
import Layout from "../../layouts/Layout.astro";
|
import Layout from "../../layouts/Layout.astro";
|
||||||
import Footer from "../../components/Footer.astro";
|
import Footer from "../../components/Footer.astro";
|
||||||
import Back from "../../components/Back.astro";
|
import Back from "../../components/Back.astro";
|
||||||
import Form, { FormControl, FormGroup } from "astro-reactive-form";
|
import {FormControl, FormGroup} from "astro-reactive-form/core";
|
||||||
|
import Form from "astro-reactive-form";
|
||||||
|
|
||||||
const simpleForm = new FormGroup([
|
const simpleForm = new FormGroup([
|
||||||
{
|
{
|
||||||
|
@ -61,7 +62,7 @@ const characteristicsForm: FormGroup = new FormGroup(
|
||||||
<p>Generate a dynamic form based on your data, and modify programatically.</p>
|
<p>Generate a dynamic form based on your data, and modify programatically.</p>
|
||||||
|
|
||||||
<h3>Simple single form group</h3>
|
<h3>Simple single form group</h3>
|
||||||
<Form formGroups={[simpleForm]} />
|
<Form formGroups={simpleForm} />
|
||||||
|
|
||||||
<h3>Multiple Form Groups</h3>
|
<h3>Multiple Form Groups</h3>
|
||||||
<Form formGroups={[nameForm, characteristicsForm]} />
|
<Form formGroups={[nameForm, characteristicsForm]} />
|
||||||
|
|
Loading…
Reference in a new issue