ESM
import "@arcgis/ai-components/components/arcgis-assistant-user-message";
Inheritance
ArcgisAssistantUserMessage→HTMLElement

The Assistant User Message component renders one user-authored chat message. Use it in a custom message-list layout to show what the user submitted.

Properties

PropertyAttributeType
content
user
user-avatar-enabled

content

Property
Type
string | undefined
Attribute
content

message

Property
Type
ChatMessage | undefined

user

Property
Type
string | undefined
Attribute
user

userAvatarEnabled

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

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