Optional
className?: stringOptional
defaultValue?: string | numberStarting value for the text field if it is not controlled
Optional
hasError?: booleanIf true
, the label is displayed in an error state.
Optional
helperText?: stringText that gives the user instructions on what contents the TextField expects
Optional
id?: stringOptional unique identifier
Optional
isDisabled?: booleanIf true
, the component is disabled.
Optional
isFullWidth?: booleanIf true
, the input will take up the full width of its container.
Optional
isRequired?: booleanIf true
, the label is displayed as required and the input
element is required.
Optional
label?: stringThe title of the TextField
Optional
onBlur?: FocusEventHandler<HTMLInputElement>Triggers when textfield loses focus
Optional
onChange?: ChangeEventHandler<HTMLInputElement>Triggers when content of textfield is changed
Optional
onFocus?: FocusEventHandler<HTMLInputElement>Triggers when textfield gets focus
Optional
placeholder?: stringThe short hint displayed in the input
before the user enters a value.
Optional
value?: string | numberValue of the text field if controlled
Additional css classes to help with unique styling of the text field