Skip to main content
Version: 57.2.0

Text field

Use the text field to allow a user to input a single line of text.

Package: @terreno/ui
Categories: Component
Props interface: TextFieldProps
Story source: demo/stories/Textfield.stories.tsx

Live demo

Props

PropTypeRequiredDescription
onChangeOnChangeCallbackYes
aiSuggestionAiSuggestionProps
autoCompleteunion
blurOnSubmitboolean
disabledboolean
errorTextstring
growboolean
helperTextstring
iconNameIconName
idstring
inputRefreflection
multilineboolean
onBlurOnChangeCallback
onEnterreflection
onFocusreflection
onIconClickreflection
onSubmitEditingreflection
placeholderstring
returnKeyTypeunion
rowsnumber
testIDstringRoot test id for the primary interactive element or container.
testIDsFieldTestIDs
titlestring
trimOnBlurboolean
typeunion
valuestring