Skip to content

Commit

Permalink
Merge pull request #121 from monterail/b74ed415
Browse files Browse the repository at this point in the history
fix: update validator desc

* fix: update validator desc

* Update src/api/options-state.md

---------

Co-authored-by: Natalia Tepluhina <tarya.se@gmail.com> (#120)
  • Loading branch information
Baroshem authored Jan 30, 2025
2 parents 4aedc9f + c3b3c0f commit 14a5ea6
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 14a5ea6

Please sign in to comment.