min
Last updated
Was this helpful?
Last updated
Was this helpful?
The min
validator checks that a numeric value is at least the minimum value provided.
If the value being validated is null
, false
, an empty string, or another falsy value other than 0
, then the result will be valid. This respects the rule of thumb described in the notes for the validator.
min
: The minimum value compared against
The min
validator supports three parameter signatures:
min(value)
where the value is used as the min
named prop
min(propsObject)
where the props object contains a min
named prop
min(propsFunction)
where the props function returns a props object with a min
named prop