A text field is an input that allows a user to write or edit text.
View source codestringThe autocomplete value for the input element.
stringclassName for the element.
string | numberThe default value (uncontrolled).
"content" | "parent"Whether the Input should fit its parent or content.
Default: contentstringThe id of the Input.
"decimal" | "numeric"Type of data that might be entered, to display the appropriate virtual keyboard.
booleanWhether the Input is disabled.
booleanWhether the Input is invalid.
booleanWhether the Input should be read only.
ReactNodeLeft addon of the input.
CleaveOptions@deprecated This props will be removed in a near futur
numberMaximum value in a number input.
numberThe maximum number of characters supported by the Input.
numberMinimum value in a number input.
stringThe name of the Input, used when submitting an HTML form.
FocusEventHandler<HTMLInputElement>Handler that is called when the element loses focus.
ChangeEventHandler<HTMLInputElement>Handler that is called when the value changes.
ClipboardEventHandler<HTMLInputElement>Handler that is called when the user copies text.
FocusEventHandler<HTMLInputElement>Handler that is called when the element receives focus.
KeyboardEventHandler<HTMLInputElement>Handler that is called when a key is pressed.
ClipboardEventHandler<HTMLInputElement>Handler that is called when the user pastes text.
WheelEventHandler<HTMLInputElement>Handler that is called when the mouse is rolled over the element.
stringRegular expression that the input's value must match in order for the value to pass
stringTemporary text that occupies the Input when it is empty.
Ref<HTMLInputElement>ReactNodeRight addon of the input.
stringThe interval between numbers in an input of type number.
"center" | "left" | "right"Specifies how the text is aligned.
Default: leftstring | numberThe current value (controlled).
"default" | "magicGradient"The visual style of the input
Default: default