For all the available props, see cmdk.
...
<EditorCommandItem
value={item.title}
onCommand={(val) => item.command(val)}>
Do something
</EditorCommand>
Props
This value would be used for filtering
onCommand
({ editor, range }: { editor: Editor; range: Range }) => void;
required
Callback function onSelect exposing editor and range