Skip to content

How to add CSS class for invalid inputs? #4003

Answered by logaretm
w3bdesign asked this question in Q&A
Discussion options

You must be logged in to vote

Depends on which flavor of the API you are using, but in both you can grab the meta object on forms and fields. The meta object contains valid property which you can use to toggle classes.

https://vee-validate.logaretm.com/v4/guide/components/validation/#validation-metadata

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by w3bdesign
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants