import { Menu, Toolbar } from '@antv/x6-react-components'
import '@antv/x6-react-components/es/menu/style/index.css'
import '@antv/x6-react-components/es/toolbar/style/index.css'
const Item = Toolbar.Item
const Group = Toolbar.Group
<Toolbar onClick={this.onClick} extra={<span>Extra Component</span>}>
<Group>
<Item name="zoomIn" tooltip="Zoom In (Cmd +)" icon={<ZoomInOutlined />} />
<Item name="zoomOut" tooltip="Zoom Out (Cmd -)" icon={<ZoomOutOutlined />} />
</Group>
<Group>
<Item name="undo" tooltip="Undo (Cmd + Z)" icon={<UndoOutlined />} />
<Item name="redo" tooltip="Redo (Cmd + Shift + Z)" icon={<RedoOutlined />} />
</Group>
<Group>
<Item name="delete" icon={<DeleteOutlined />} disabled={true} tooltip="Delete (Delete)" />
</Group>
<Group>
<Item name="bold" icon={<BoldOutlined />} active={true} tooltip="Bold (Cmd + B)" />
<Item name="italic" icon={<ItalicOutlined />} tooltip="Italic (Cmd + I)" />
<Item name="strikethrough" icon={<StrikethroughOutlined />} tooltip="Strikethrough (Cmd + Shift + x)" />
<Item name="underline" icon={<UnderlineOutlined />} tooltip="Underline (Cmd + U)" />
</Group>
</Toolbar>