You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-[Passing Callbacks as Props](/guide/components.html#Passing_Callbacks_as_Props)
132
132
133
+
Instead of defining the props as strings, you can use Objects that contain validation requirements:
134
+
135
+
```js
136
+
Vue.component('prop-validation-demo', {
137
+
props: [
138
+
{
139
+
name:'size',
140
+
type:Number
141
+
},
142
+
{
143
+
name:'message',
144
+
type:String,
145
+
required:true
146
+
}
147
+
]
148
+
})
149
+
```
150
+
151
+
For prop validation more details see [Prop Validation](/guide/components.html#Prop_Validation).
152
+
133
153
#### Notes on hyphened attributes
134
154
135
155
HTML attribute names ignore upper and lower case differences, so we usually use hyphened attributes instead of camel case. There are some special cases when using `props` with attributes that contains hyphens:
0 commit comments