ESM
import "@arcgis/ai-components/components/arcgis-assistant-message";- Inheritance
- ArcgisAssistantMessage→
HTMLElement
Renders a single assistant response message shell. Pass one assistant message object and let it host body and footer actions. Offers a reusable assistant-message layout with icon, content, and footer slot regions.
Properties
| Property | Attribute | Type |
|---|---|---|
| assistant-avatar-enabled | ||
| copy-enabled | ||
| feedback-enabled | ||
| footer-disabled | ||
| log-enabled | ||
| | ||
| read-aloud-enabled |
message
Property
- Type
- AssistantMessage | undefined
Methods
| Method | Signature |
|---|---|
| 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 arcgisAssistantMessage = document.createElement("arcgis-assistant-message");document.body.append(arcgisAssistantMessage);await arcgisAssistantMessage.componentOnReady();console.log("arcgis-assistant-message is ready to go!");