Props

Props are the data a parent component passes to a child. They are declared with defineProps, can be typed and validated, and are read-only on the child side: the data flow goes down from parent to child. To modify data, the child emits an event.

Example

const props = defineProps({ titre: String })

Related concepts

The whole glossary