InputError passes down additional props as it is often used as a standalone component for things like form-wide errors (i.e., _error on sign-in)
A custom errorComponent should have access to all props, so that it can handle things like passing event handlers
A standard InputError used in a LabeledField should not have all of the props passed down to it since the user cedes control over what gets spread to the <span>, hence making the distinction between the custom and standard error component in LabeledField
Resolves #396
Notes:
InputError
passes down additional props as it is often used as a standalone component for things like form-wide errors (i.e.,_error
on sign-in)errorComponent
should have access to all props, so that it can handle things like passing event handlersInputError
used in aLabeledField
should not have all of the props passed down to it since the user cedes control over what gets spread to the<span>
, hence making the distinction between the custom and standard error component inLabeledField