ESM
import "@arcgis/ai-components/components/arcgis-assistant-user-message";
Inheritance
ArcgisAssistantUserMessageHTMLElement

Renders one user-authored chat message row. Use it for displaying what the user sent. Offers a simple user message presentation primitive for custom message-list rendering.

Properties

PropertyAttributeType
content
user

content

Property
Type
string | undefined
Attribute
content

message

Property
Type
ChatMessage | undefined

user

Property
Type
string | undefined
Attribute
user

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