ESM
import "@arcgis/ai-components/components/arcgis-assistant-message-loading";
Inheritance
ArcgisAssistantMessageLoadingHTMLElement

Shows in-progress assistant response UI. Use it to display thinking or loading state while work is running. Offers a default loading message shell with icon/content slot overrides.

Properties

PropertyAttributeType
assistant-avatar-enabled
AssistantMessage["interrupts"] | undefined
loading
loading-message

assistantAvatarEnabled

Property
Type
boolean
Attribute
assistant-avatar-enabled
Default value
false

interrupts

Property
Type
AssistantMessage["interrupts"] | undefined

loading

Property
Type
boolean
Attribute
loading
Default value
false

loadingMessage

Property
Type
string
Attribute
loading-message
Default value
""

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