Skip to main content

Define suggestions

We export a helper to define the suggestions that will be shown in the command palette. createSuggestionItems

Register the command

We need to add the command to the extensions array

Create UI for the command

We map the suggestionItems and use the EditorCommand and EditorCommandItem components to create the UI for the command palette. Components are wrapper over cmdk