Label
Homecomponentsinput
TextField
A field to get a single line of plain text.
The TextField is used to get user input in a text field.
Size
Use size property to set the size of field.
Regular
Small
Label
Use label property to set the label.
User name
Label tip
Use tip property to add a tooltip next to label.
User name
Secondary Label
Use secondaryLabel property to set the secondary label.
Credit card
Description
Use description property to add a note below the field.
User name
Disabled
Use disabled property to disable the field.
User name
Error
Use errorMessage property to add an error message below the field.
Display name
Prefix & Suffix
Use prefix and suffix properties to add some content within the field on the left and right sides.
EUR
EUR
http://
.com
API
onChange
Required
(value: string) => void
name
Required
string
textAlign
center
end
start
size
small
regular
disabled
true
false
data
DataAttributeMap
label
string
id
string
placeholder
string
prefix
ReactNode
onBlur
FocusEventHandler<HTMLInputElement>
onKeyDown
KeyboardEventHandler<HTMLInputElement>
value
string
required
true
false
suffix
ReactNode
maxLength
number
tip
string
secondaryLabel
ReactNode
description
string
errorMessage
string
ref
Ref<HTMLInputElement>
key
Key | null