<EditorBubbleItem
  key={index}
  onSelect={(editor) => {
    item.command(editor);
  }}>
  ...
</EditorBubbleItem>

Props

children
ReactNode
required
className
string
onSelect
(editor: Editor) => void