Optional
autoComplete?: stringOptional
autoFocus?: booleanWhether the input has automatic focus or not.
Optional
change?: (value: string, event: ChangeEvent<HTMLElement>) => voidChange event.
Optional
className?: stringOptional
click?: MouseEventHandler<HTMLElement>Optional
columns?: numberFor multiline inputs, indicates the number of columns.
Optional
contextMenu?: MouseEventHandler<HTMLElement>Optional
default?: stringDefault value.
Optional
disabled?: booleanWhether disabled or not.
Optional
email?: booleanIndicates whether the input is an e-mail field.
Optional
focus?: FocusEventHandler<HTMLElement>Optional
icon?: stringIcon (only effects if input is a single line).
If the search
option is true, then the default icon
is the search icon.
Optional
id?: stringOptional
maxHeight?: numberOptional
maxWidth?: numberOptional
minHeight?: numberOptional
minWidth?: numberOptional
mouseOut?: MouseEventHandler<HTMLElement>Optional
mouseOver?: MouseEventHandler<HTMLElement>Optional
mouseUp?: MouseEventHandler<HTMLElement>Optional
multiline?: booleanWhether the input is multiline or not.
Optional
number?: booleanIndicates whether the input is a number field.
Optional
password?: booleanIndicates whether the input is a password field.
Optional
placeholder?: stringPlaceholder text.
Optional
ref?: Ref<null | HTMLInputElement | HTMLTextAreaElement>Optional
rows?: numberFor multiline inputs, indicates the number of rows.
Optional
scroll?: UIEventHandler<HTMLElement>Optional
search?: booleanIndicates whether the input is a search field.
Optional
style?: CSSPropertiesOptional
telephone?: booleanIndicates whether the input is a telephone field.
Optional
wheel?: WheelEventHandler<HTMLElement>
See MDN reference.