Vue.js · Function
defineProps
defineProps declares the props a Vue component accepts. It supports runtime options or a TypeScript type declaration and returns the received props for use in script.
Last updated
Syntax
defineProps(options)
defineProps<Props>()In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
defineEmitswithDefaultsReactive Props DestructureProp Validationprops option