Skip to content

Interface: SuggestionItem ​

One option in a suggestion menu.

Properties ​

PropertyTypeDescription
command() => CommandRuns after the typed trigger and query are removed, in the same undo step.
description?stringExtra line shown and announced with the option.
idstringUnique within the list.
keywords?readonly string[]Extra words filterSuggestions() matches, e.g. ['h1', 'title'].
labelstringText shown for the option; filterSuggestions() matches it.