AiMessage API
Props, callbacks and methods. Select an underlined type to explore its fields, allowed values and callback arguments.
AiMessage6 props0 callbacks0 methods
Props6
| Name | Type | Description |
|---|---|---|
fromRequired | "user" | "assistant" | "system" | Message author role: user, assistant or system. |
labelOptional | string | undefined | Label content or accessible name for the component, as rendered by this control. |
isStreamingOptional | boolean | undefined | Marks a message as receiving streamed content. |
childrenOptional |
| Content rendered inside the component. Supply nodes from the framework adapter you are using. |
classNameOptional | string | undefined | Additional CSS classes applied to the component root. |
translationsOptional |
| Overrides the default UI strings. Supply only the entries you want to translate and retain any placeholders. |
Events and callbacks0
No component-specific events or callbacks.
Methods0
No component-specific imperative methods. Use props and callbacks to control this component.