github repository for svelte forms lib

Yup validation

Example using Yup as validation. Installing yup in your project:

npm i yup

Yup is a json validator that provides a simple api which allow us to validate forms of different shapes. Validation happens when input changes and upon form submission.

This library does not include any styling for the forms. Feel free to copy and customize this css for your own use.

code

 
copy