Experimental: The AI extension and its component APIs may change in the future. Please give us feedback on your experience with them.
Events#
| Type | Description | |
|---|---|---|
onChange | function | (optional) Called when the text changes. Receives { value }. |
onSubmit | function | (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. |
onStop | function | (optional) Called when the user presses the stop button. |