We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update our API docs to include the new features!
1. Form validateOnLoad prop done 2. FormGroup.setValue()
You may also check the demo app examples in apps/demo
apps/demo
--- import Form, { FormGroup } from "@astro-reactive/form"; import { Validators } from "@astro-reactive/validator"; const formGroup = new FormGroup([ { name: "text", label: "Name", type: "text", placeholder: "Enter your name", validators: [ { validator: Validators.required, category: "warn", }, ], }, { name: "email", label: "Email", type: "email", placeholder: "Enter your email", validators: [Validators.required, Validators.email], }, { name: "password", label: "Password", type: "password", placeholder: "Enter your password", }, ]); formGroup.setValue({ text: "John Doe", email: "invalid-email", }); --- <html lang="en"> <head> <meta charset="utf-8" /> <link rel="icon" type="image/svg+xml" href="/favicon.svg" /> <meta name="viewport" content="width=device-width" /> <meta name="generator" content={Astro.generator} /> <title>Astro</title> </head> <body> <h1>Astro</h1> <Form validateOnLoad={true} showValidationHints={true} formGroups={formGroup} /> </body> </html>
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Update our API docs to include the new features!
form
1. Form validateOnLoad propdone2. FormGroup.setValue()
validator
You may also check the demo app examples in
apps/demo
More sample code:
The text was updated successfully, but these errors were encountered: