ESM
import "@arcgis/ai-components/components/arcgis-assistant-message-block";
Inheritance
ArcgisAssistantMessageBlock→HTMLElement

The Assistant Message Block component renders "text" and "suggested-prompts" blocks by default. Use it to display these supported UXSuggestion types; for other block types, provide custom content through the containing assistant or message component's event.

Properties

PropertyAttributeType

block

Property
Type
UXSuggestion | undefined

Methods

MethodSignature
inherited
componentOnReady(): Promise<this>

componentOnReady

inherited Method
Signature
componentOnReady (): Promise<this>

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

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