Skip to components
DEVELOPER REFERENCE · v4.0.0

AiMessage API

Props, callbacks and methods. Select an underlined type to explore its fields, allowed values and callback arguments.

AiMessage6 props0 callbacks0 methods

Props6

AiMessage props
NameTypeDescription
fromRequired"user" | "assistant" | "system"Message author role: user, assistant or system.
labelOptionalstring | undefinedLabel content or accessible name for the component, as rendered by this control.
isStreamingOptionalboolean | undefinedMarks a message as receiving streamed content.
childrenOptional
ComponentChildrenInspect type
Content rendered inside the component. Supply nodes from the framework adapter you are using.
classNameOptionalstring | undefinedAdditional CSS classes applied to the component root.
translationsOptional
AiUiTranslationsInspect type
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.