diff --git a/src/v2/guide/components-props.md b/src/v2/guide/components-props.md index 1f97bed30e..2ff3257642 100644 --- a/src/v2/guide/components-props.md +++ b/src/v2/guide/components-props.md @@ -313,7 +313,7 @@ This can be especially useful in combination with the `$attrs` instance property ```js { - class: 'username-input', + required: true, placeholder: 'Enter your username' } ``` @@ -337,12 +337,14 @@ Vue.component('base-input', { }) ``` +
Note that `inheritAttrs: false` option does **not** affect `style` and `class` bindings.
+ This pattern allows you to use base components more like raw HTML elements, without having to care about which element is actually at its root: ```html