Skip to content

Experimental: The AI extension and its component APIs may change in the future. Please give us feedback on your experience with them.

Events#

TypeDescription
onChangefunction(optional) Called when the text changes. Receives { value }.
onSubmitfunction(optional) Called with the text when the user presses Enter on desktop or the send button. Receives { value, event }. Empty text is not submitted. Shift+Enter and Enter on touch-primary devices add a new line.
onStopfunction(optional) Called when the user presses the stop button.
Suggest an edit