Included Validation #1072
nam-co
started this conversation in
3. Feature Ideas
Replies: 1 comment 1 reply
-
@nam-co I can't imagine Alpine adding built-in form validation but you might be interested in using a form validation library called Iodine alongside Alpine, for example like the approach shown in this CSS Tricks article: https://css-tricks.com/lightweight-form-validation-with-alpine-js-and-iodine-js |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi Caleb, thanks for the hard work in alpine Js, just an idea, it could be great if there was a way to validate fields inside alpine, something like this maybe, nobody would bother about a few kb more
<span v-show="!email.validate">check your email</span> <input x-model="email" x-on:blur.validate="email,max:50"> OR <input x-model="email" x-validate.debounce="email,max:50">
hope you'll consider it, have a great day
Beta Was this translation helpful? Give feedback.
All reactions