How to Set Default Value of Props in Vue?
Too Long; Didn't Read
Setting 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.