Skip to content

Commit

Permalink
fix: update validator desc (#3152)
Browse files Browse the repository at this point in the history
* fix: update validator desc

* Update src/api/options-state.md

---------

Co-authored-by: Natalia Tepluhina <[email protected]>
  • Loading branch information
btea and NataliaTepluhina authored Jan 21, 2025
1 parent a0d6271 commit b74ed41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/options-state.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ Declare the props of a component.
- **`required`**: Defines if the prop is required. In a non-production environment, a console warning will be thrown if this value is truthy and the prop is not passed.
- **`validator`**: Custom validator function that takes the prop value as the sole argument. In development mode, a console warning will be thrown if this function returns a falsy value (i.e. the validation fails).
- **`validator`**: Custom validator function that takes the prop value and props object as arguments. In development mode, a console warning will be thrown if this function returns a falsy value (i.e. the validation fails).
- **Example**
Expand Down

0 comments on commit b74ed41

Please sign in to comment.