Ai input

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

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

When true, replaces the submit button's content with a spinner and disables it. Skip goes with it, so neither button can advance the flow while the consumer is still processing the last one.

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 = ''
showSkipBesideSubmit ?: boolean = false

Renders Skip beside the submit button instead of replacing it.

skipLabel ?: string

When set, shows a Skip text button in place of the submit button while the field is empty.

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