--- pageClass: rule-details sidebarDepth: 0 title: vue/require-default-prop description: require default value for props since: v3.13.0 --- # vue/require-default-prop > require default value for props - :gear: This rule is included in the following preset configs: - `*.configs["flat/strongly-recommended"]` - `*.configs["flat/vue2-strongly-recommended"]` - `*.configs["flat/recommended"]` - `*.configs["flat/vue2-recommended"]` - `"plugin:vue/strongly-recommended"` - `"plugin:vue/vue2-strongly-recommended"` - `"plugin:vue/recommended"` - `"plugin:vue/vue2-recommended"` ## :book: Rule Details This rule requires default value to be set for each props that are not marked as `required` (except `Boolean` props). ```vue ``` ## :wrench: Options Nothing. ## :couple: Related Rules - [vue/no-boolean-default](./no-boolean-default.md) ## :books: Further Reading - [Style guide - Prop definitions](https://vuejs.org/style-guide/rules-essential.html#use-detailed-prop-definitions) ## :rocket: Version This rule was introduced in eslint-plugin-vue v3.13.0 ## :mag: Implementation - [Rule source](https://github.com/vuejs/eslint-plugin-vue/blob/master/lib/rules/require-default-prop.js) - [Test source](https://github.com/vuejs/eslint-plugin-vue/blob/master/tests/lib/rules/require-default-prop.test.ts)