nuxt-ui-vue icon indicating copy to clipboard operation
nuxt-ui-vue copied to clipboard

Form

Open selemondev opened this issue 2 years ago • 2 comments

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 avatar Sep 13 '23 15:09 selemondev

Hi, I can help make this

Dmitryitis avatar Mar 22 '24 12:03 Dmitryitis

Hey @Dmitryitis, sure go ahead.

selemondev avatar Mar 22 '24 14:03 selemondev