AiChatComposer API
Props, callbacks and methods. Select an underlined type to explore its fields, allowed values and callback arguments.
AiChatComposer13 props3 callbacks0 methods
Props13
| Name | Type | Description |
|---|---|---|
translationsOptional |
| Overrides the default UI strings. Supply only the entries you want to translate and retain any placeholders. |
valueRequired | string | Value to display or edit. The declared type identifies the supported representation; change callbacks describe how edited values are emitted. |
busyOptional | boolean | undefined | Indicates that an operation is in progress; interactive controls block activation while busy. |
disabledOptional | boolean | undefined | Disables user interaction with the control. |
labelOptional | string | undefined | Label content or accessible name for the component, as rendered by this control. |
placeholderOptional | string | undefined | Content shown when there is no entered or selected value. |
submitLabelOptional | string | undefined | Accessible text for sending the prompt. |
stopLabelOptional | string | undefined | Accessible text for stopping the current operation. |
promptHistoryOptional |
| Opt-in local prompt recall. Arrow keys retain normal multiline behavior away from text edges. |
hintOptional | string | undefined | Empty-draft keyboard guidance. An empty string lets toolbar context replace it. |
actionsOptional |
| Host-supported actions or context, displayed in the composer toolbar. |
footerOptional |
| Applied context or supplemental content above the bottom toolbar. |
textareaPropsOptional |
| Native textarea presentation and sizing; input behavior stays controlled here. |
Events and callbacks3
| Name | Type | Description |
|---|---|---|
onValueChangeRequired |
| Receives the updated input value. Store it in application state and pass it back through value. |
onSubmitRequired |
| Submits the current prompt value to the application-provided handler. |
onStopOptional |
| Requests cancellation of the in-progress AI operation. |
Methods0
No component-specific imperative methods. Use props and callbacks to control this component.