Input
View Source
Composes Input.InputBox and Input.InputField.
Props
Accepts props for Input.InputBox and Input.InputField, remaining props are forwarded to Input.InputBox
.
InputFieldProps['autoComplete']
Accepts “on” or “off” values. Learn more on MDN.
InputFieldProps['autoFocus']
Input will receive focus on page load. (Limit to one per page.)
InputFieldProps['autoWidth']
Sets the input’s width to the exact size of the text plus padding and cursor. Allows a string to be passed for measuring if input value is different from displayed value.
InputBoxProps['backgroundColor']
Changes background color of the input. Both theme colors and html values are supported.
InputBoxProps['color']
Changes color of the input’s value. Both theme colors and html values are supported.
InputFieldProps['defaultValue']
Provides an initial value to the input.
boolean
Disables the input.
InputFieldProps['focus']
Pass styles for when the input is focused.
InputFieldProps['highlightOnInteraction']
Forces the input text to stay fully selected while interacting with it.
InputFieldProps['hover']
Pass styles for when the input is hovered.
InputFieldProps['id']
Used to identify an input.
InputFieldProps['max']
Defines the maximum value that is acceptable and valid for the input. Learn more on MDN.
InputFieldProps['maxLength']
defines the maximum number of characters the input will accept. Learn more on MDN.
InputFieldProps['min']
Defines the minimum value that is acceptable and valid for the input. Learn more on MDN.
InputFieldProps['minLength']
defines the maximum number of characters the input will accept. Learn more on MDN.
InputFieldProps['name']
Names the input and required to submit the input’s value
.
InputFieldProps['onBlur']
Maps to the internal input’s onBlur
prop.
InputFieldProps['onChange']
Maps to the internal input’s onChange
prop.
InputFieldProps['onFocus']
Maps to the internal input’s onFocus
prop.
InputFieldProps['onKeyDown']
InputFieldProps['onKeyUp']
InputFieldProps['placeholder']
InputFieldProps['placeholderColor']
Changes color of the input’s placeholder text. Both theme colors and html values are supported.
InputFieldProps['readOnly']
Prevents the user from editing the input, but still submits and receives focus.
InputFieldProps['required']
Sets the input’s required attribute.
InputFieldProps['type']
Specifies the type of form control to render. Learn more on MDN
InputFieldProps['value']
User provided value that is passed to input.