Input is a lower-level constructs upon which all Grapes inputs are built.
View source codestring
The autocomplete value for the input element.
string
className for the element.
string | number
The default value (uncontrolled).
"content" | "parent"
Whether the Input should fit its parent or content.
Default: contentstring
The id of the Input.
"decimal" | "numeric"
Type of data that might be entered, to display the appropriate virtual keyboard.
boolean
Whether the Input is disabled.
boolean
Whether the Input is invalid.
boolean
Whether the Input should be read only.
ReactNode
Left addon of the input.
CleaveOptions
@deprecated This props will be removed in a near futur
number
Maximum value in a number input.
number
The maximum number of characters supported by the Input.
number
Minimum value in a number input.
string
The 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.
string
Regular expression that the input's value must match in order for the value to pass
string
Temporary text that occupies the Input when it is empty.
Ref<HTMLInputElement>
ReactNode
Right addon of the input.
string
The interval between numbers in an input of type number.
"center" | "left" | "right"
Specifies how the text is aligned.
Default: leftstring
The type of the HTML input element.
Default: textstring | number
The current value (controlled).
"default" | "magicGradient"
The visual style of the input
Default: default