Skip to content
This repository has been archived by the owner on Sep 24, 2024. It is now read-only.

Form #142

Open
selemondev opened this issue Sep 13, 2023 · 2 comments
Open

Form #142

selemondev opened this issue Sep 13, 2023 · 2 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@selemondev
Copy link
Owner

The Form component is used to validate form data using schema libraries such as Yup, Zod, Joi, Valibot or your own validation logic. It should work seamlessly with the FormGroup component to automatically display error messages around form elements.

The Form component requires the validate and state props for form validation.

  • state - A reactive object that holds the current state of the form.
  • validate - A function that takes the form's state as input and returns an array of FormError objects with the following fields:
  • message - The error message to display.
  • path - The path to the form element matching the name.
@selemondev selemondev added enhancement New feature or request good first issue Good for newcomers labels Sep 13, 2023
@Dmitryitis
Copy link

Hi, I can help make this

@selemondev
Copy link
Owner Author

selemondev commented Mar 22, 2024

Hey @Dmitryitis, sure go ahead.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants