Ai textarea

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

Contents

With minLines set to 1 the textarea renders as a single-line field: the submit button sits inline on the first line and drops below the input once the text wraps. This mirrors the homepage hero usage.

Inputs in Single line
buttonText ?: string = ''

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

minLines ?: number = 4

Lines shown at rest before auto-grow, including the stacked toolbar row. Set to 1 for a single-line field with the button inline.

squareButton ?: boolean = false

Rounded-rectangle submit instead of round/pill.

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