Skip to content

Commit 49d4208

Browse files
Removed docs on validate of props (which is in fact not implemented).
1 parent 58771a9 commit 49d4208

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

docs/components/props.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ Since props are used to pass information from a parent to a child, it's importan
3030
For more advanced usage, you can define props using an array with an `object` for each prop, instead of just a string with the accepted name. Within each prop object, you can:
3131

3232
- Specify a _default value_ for the prop if it's omitted.
33-
- _Validate_ the value of the prop based on certain criteria.
3433
- Mark the prop as _required_.
3534
- Apply a `cast` function to modify the value passed as a prop.
3635

@@ -46,9 +45,6 @@ export default Blits.Component('MyComponent', {
4645
key: 'alpha',
4746
default: 0.5,
4847
required: true,
49-
validate(v) {
50-
return v <= 1 && v >= 0;
51-
},
5248
cast: Number
5349
}
5450
]

0 commit comments

Comments
 (0)