Skip to content
masterclass Buddy

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.

Subscribe
  • defineEmits
  • withDefaults
  • Reactive Props Destructure
  • Prop Validation
  • props option

Source: Props | Vue.js. Checked 2026-11-03.