How to Set Default Value of Props in Vue?
Too Long; Didn't ReadSetting default prop values in Vue is easy. If you are using the Options API, then it's as easy as extending our property into an object. In the composition API, defining props uses the defineProps function. This function follows the same syntax as props defined in the Options API.