Loading...

Usage

import InputZIP from '@nerdwallet/react-formatted-input/input-zip';
<InputZIP />

Loading examples...

<InputZIP>

label

string

The default label associated with the input field. Should always be supplied to meet accessibility best practices.

Default

'ZIP code'

value

string | number

In general all input components should be controlled, which means their value is passed into the component, and state is maintained within the React component as opposed to using refs from the DOM.

Although generally required, default to ''.

Default

''

See Also