Type parameter | Description |
---|---|
TValue |
the input's value type |
Debug-friendly name that can be back-queried from the state instance.
Specifies how the input value should be normalized before it gets parsed into a domain value. You can use this hook to e.g. remove extra spaces from inputs or converting separating characters into a standardized form.
Unlike parsing, normalization should never fail: At worst case the input value should be returned as is.
specifies if an input should re-validate on confirm. This defaults to true if the two values are the same.
Specifies how confirming this input will synchronously confirm the other inputs.
Using cascading over separate confirm() calls make sure that domain validation depending on either or both inputs are triggered in the same validation cycle.
If using an arrow function, the input itself is given back as second argument for convenience.
The input value to confirm.
Handy reference to the input itself.
Generated using TypeDoc
Describes options customizing an input UI state.