Homecomponentsinput
Alpha
This component is in development. There could be breaking changes made to it in a non-major release of Prism. Please use with caution.The TextField is used to get user input in a text field.
Size
Use size property to set the size of field.
Label
Use label property to set the label.
Label tip
Use tip property to add a tooltip next to label.
Secondary Label
Use secondaryLabel property to set the secondary label.
Description
Use description property to add a note below the field.
Disabled
Use disabled property to disable the field.
Error
Use errorMessage property to add an error message below the field.
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
name
Required
string
onChange
((value: string) => void)
id
string
prefix
ReactNode
onBlur
FocusEventHandler<HTMLInputElement>
onKeyDown
KeyboardEventHandler<HTMLInputElement>
size
small
regular
textAlign
center
end
start
disabled
true
false
data
DataAttributeMap
label
string
placeholder
string
value
string
required
true
false
suffix
ReactNode
maxLength
number
tip
string
secondaryLabel
ReactNode
description
string
errorMessage
string
ref
Ref<HTMLInputElement>
key
Key | null