Skip to components
DEVELOPER REFERENCE · v4.0.0

AiSuggestions API

Props, callbacks and methods. Select an underlined type to explore its fields, allowed values and callback arguments.

AiSuggestions4 props1 callbacks0 methods

Props4

AiSuggestions props
NameTypeDescription
translationsOptional
AiUiTranslationsInspect type
Overrides the default UI strings. Supply only the entries you want to translate and retain any placeholders.
itemsRequired
readonly (string | AiSuggestionChoice)[]Inspect type
Ordered items to render. Each item follows the shape shown in the expanded type.
disabledOptionalboolean | undefinedDisables user interaction with the control.
labelOptionalstring | undefinedLabel content or accessible name for the component, as rendered by this control.

Events and callbacks1

AiSuggestions events and callbacks
NameTypeDescription
onSelectRequired
(value: string) => voidInspect type
Called when the user selects an item. The signature identifies the selected value and any additional context.

Methods0

No component-specific imperative methods. Use props and callbacks to control this component.