ESM
import "@arcgis/ai-components/components/arcgis-assistant-message-block";
Inheritance
ArcgisAssistantMessageBlockHTMLElement

Renders one structured assistant block. Offers default block rendering for supported suggestion-style blocks.

Properties

PropertyAttributeType

block

Property
Type
UXSuggestion | 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 arcgisAssistantMessageBlock = document.createElement("arcgis-assistant-message-block");
document.body.append(arcgisAssistantMessageBlock);
await arcgisAssistantMessageBlock.componentOnReady();
console.log("arcgis-assistant-message-block is ready to go!");