Ai textarea

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

Contents

Set busy to replace the submit button's content with a spinner and disable it.

Skip is disabled with it, so neither button can advance the flow while the last answer is still in flight.

Inputs in Busy
busy ?: boolean = false

Replaces submit content with a spinner and disables submit and skip.

buttonText ?: string = ''

Submit expands to a labelled pill once `minCharacters` is reached.

skipLabel ?: string

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

Also set in this example
control : FormControl<string>
placeholder ?: string = ''
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>()