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