ESM
import "@arcgis/ai-components/components/arcgis-assistant-suggested-prompts";
Inheritance
ArcgisAssistantSuggestedPromptsHTMLElement

Displays prompt chips and emits selection events. Use it to offer quick starter prompts. Offers selectable prompt chips with a prompt-select event for host synchronization.

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>
Inherited from: 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