ESM
import "@arcgis/ai-components/components/arcgis-assistant-suggested-prompts";
Inheritance
ArcgisAssistantSuggestedPrompts→HTMLElement

The Assistant Suggested Prompts component displays selectable prompt chips. Use it to offer starter prompts and handle the user's selection.

Properties

PropertyAttributeType
label
string[]

label

Property
Type
string | undefined
Attribute
label

prompts

Property
Type
string[]

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

Events

arcgisPromptSelect

Event
bubbles composed cancelable