Describe about validations available for props?

Posted by Jennifer | Updated on

Describe about validations available for props?

Vue provides validations such as types, required fields, default values along with customized validations. You can provide an object with validation requirements to the value of props as below.

Let’s take an example of user profile Vue component with possible validations:


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers