Ai textarea

AI textarea with a send button and optional attachment and voice input buttons

Contents

Set skipLabel to show a text button just before the submit button. Pair it with onSkip to handle the click.

Skipped: false

With showAttachmentsButton and showVoiceInputButton, the skip button stays just before the submit button, after the voice input button.

Inputs in Skip label
skipLabel ?: string

Toolbar text button before submit; pair with `onSkip`.

Also set in this example
control : FormControl<string>
placeholder ?: string = ''
showAttachmentsButton ?: boolean = false
showVoiceInputButton ?: boolean = false
Outputs
onAttachmentsClick ?: any = new EventEmitter<void>()
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>()
onVoiceInputClick ?: any = new EventEmitter<void>()