Ai textarea

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

Contents

Set showTooltip to name the attachments and voice buttons on hover. The copy defaults to "Add attachments" and "Enable voice input".

attachmentsTooltipText and voiceInputTooltipText replace that copy. An empty string hides that button's tooltip.

Inputs in Tooltip
attachmentsTooltipText ?: any = $localize`:Ai textarea add attachments button tooltip:Add attachments`

Tooltip on the attachments button. Shown when `showTooltip` is true.

showTooltip ?: boolean = false

Shows the attachments and voice button tooltips.

voiceInputTooltipText ?: any = $localize`:Ai textarea voice input start button tooltip:Enable voice input`

Tooltip on the voice button. Shown when `showTooltip` is true.

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>()