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
Copy file name to clipboardExpand all lines: src/guide/components/props.md
+3-1
Original file line number
Diff line number
Diff line change
@@ -482,7 +482,9 @@ Additional details:
482
482
483
483
- All props are optional by default, unless `required: true` is specified.
484
484
485
-
- An absent optional prop will have `undefined` value.
485
+
- An absent optional prop other than `Boolean` will have `undefined` value.
486
+
487
+
- The `Boolean` absent props will be cast to `false`. You should set a `default` value for it in order to get desired behavior.
486
488
487
489
- If a `default` value is specified, it will be used if the resolved prop value is `undefined` - this includes both when the prop is absent, or an explicit `undefined` value is passed.
0 commit comments