Ai input

AI input with a single-line field, a submit button, and an optional skip text button.

Contents

Invalid submissions always keep focus so the user can correct the input. With keepKeyboardOpenOnValidSubmit, valid submissions keep focus too.

By default, invalid submissions still keep focus, while valid submissions move focus to the button and close the virtual keyboard.

Inputs in Keep keyboard open on valid submit
keepKeyboardOpenOnValidSubmit ?: boolean = false

Keep the virtual keyboard open after a valid submit. Invalid submits always keep it open so the user can correct the input.

Also set in this example
control : FormControl<string>
buttonText ?: string = ''

When set, the submit button expands into a labelled pill once `minCharacters` is reached.

placeholder ?: string = ''
Outputs
onBlur ?: any = new EventEmitter<void>()
onFocus ?: any = new EventEmitter<void>()
onInputHandled ?: any = new EventEmitter<void>()
onSkip ?: any = new EventEmitter<void>()
onSubmit ?: any = new EventEmitter<void>()