ESM
import "@arcgis/ai-components/components/arcgis-assistant-message-text";
Inheritance
ArcgisAssistantMessageTextHTMLElement

Renders assistant message text content. Use it when the block is plain text output. Offers sanitized rich-text rendering for assistant-generated message content.

Properties

PropertyAttributeType
content

content

Property
Type
string | undefined
Attribute
content

parts

Property
Type
string[] | undefined

Methods

MethodSignature
inherited
componentOnReady(): Promise<this>

componentOnReady

inherited Method
Signature
componentOnReady (): Promise<this>
Inherited from: this

Creates a promise that resolves once the component is fully loaded.

Returns
Promise<this>
Example
const arcgisAssistantMessageText = document.createElement("arcgis-assistant-message-text");
document.body.append(arcgisAssistantMessageText);
await arcgisAssistantMessageText.componentOnReady();
console.log("arcgis-assistant-message-text is ready to go!");