TextInputProps

Interface

The TextInput component props

Inherits properties from the HTMLInputElement, only text related types are accepted for the type prop.

See additional props available from HTMLInputElement.

Properties

htmlSize optional

htmlSize: number

The native size attribute applied to the root input element.

innerRef optional

innerRef: Ref<HTMLInputElement>

The reference forwarded to the root input element.

invalid optional

invalid: boolean

Part of the form validation. If true, the input is considered as NOT passing the validation and its UI will be updated to reflect this state.

onAcceptValue optional

onAcceptValue: function

Callback fires when the text box is blurred or the enter key is pressed, which is considered to be the complete of the editing process.

Type declaration
    (valuestring): void
    Parameters
    • valuestring
    Returns 
    void

size optional

size: void | void

Defines the size of the component. The component will take the default size if the value is undefined.

tag optional

tag: ElementType<any>

Tag name used for the root input element. The default value is input.

type optional

type: InputType

The type attribute applied to the root input element.

valid optional

valid: boolean

Part of the form validation. If true, the input is considered as passing the validation and its UI will be updated to reflect this state.

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.