{"repo":"vuelidate/vuelidate","free":true,"listed":false,"github":"https://github.com/vuelidate/vuelidate","clone":"git clone https://github.com/vuelidate/vuelidate.git","description":"Simple, lightweight model-based validation for Vue.js","language":"JavaScript","stars":6874,"topics":["vue","javascript","validation","vuelidate","vuejs"],"license":"MIT","category":"ui-components","readme_excerpt":"vuelidate Simple, lightweight model-based validation for Vue.js 2.x & 3.0 Visit Vuelidate Docs for detailed instructions. Sponsors Installation You can use Vuelidate just by itself, but we suggest you use it along @vuelidate/validators , as it gives a nice collection of commonly used validators. Vuelidate supports both Vue 3.0 and Vue 2.x Possible alternatives Vuelidate is currently in LTS mode, so you may want to look at similar form libraries that are currently actively maintained. Model-based validation - Regle : ✅ Headless form validation library for Vue.js [Github, Docs, Migration guide] - A validation library that use a similar API as Vuelidate's, with improved Typescript support, Nuxt integration and schema libraries (Zod, Valibot, Arktype) Composable approach - Vee-Validate : Painless Vue forms [Github, Docs] UI based - VueForm : Open-Source Form Framework for Vue [Github, Docs] Usage with Options API To use Vuelidate with the Options API, you just need to return an empty Vuelidate instance from setup . Your validation state lives in the data and the rules are in validations function. Usage with Composition API To use Vuelidate with the Composition API, you need to provide it a state and set of validation rules, for that state. The state can be a reactive object or a collection of refs . Providing global config to your Vuelidate instance You can provide global configs to your Vuelidate instance using the third parameter of useVuelidate or by using the validationsConfi","default_branch":null,"files":null,"tree":[],"storefront":"/r/vuelidate","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/vuelidate/vuelidate/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}