-
-
Notifications
You must be signed in to change notification settings - Fork 607
Description
Describe the bug
I want to use the DragHandleMenu component with my own custom subcomponents. It seems that can be done using specific children (
BlockNote/packages/react/src/components/SideMenu/DragHandleMenu/DragHandleMenu.tsx
Line 42 in 8bb9bc6
{props.children || ( |
BlockNote/packages/react/src/components/SideMenu/DefaultButtons/DragHandleButton.tsx
Line 48 in 8bb9bc6
<Component block={props.block} /> |
I tried also to provide my own custom component using the 'dragHandleMenu' prop
BlockNote/packages/react/src/components/SideMenu/DefaultButtons/DragHandleButton.tsx
Line 26 in 8bb9bc6
const Component = props.dragHandleMenu || DragHandleMenu; |
but you have to provide a component class not an instance with my custom component
To Reproduce
Try to configure a custom SideMenu, and provide custom components to be used on
https://github.com/TypeCellOS/BlockNote/blob/main/packages/react/src/components/SideMenu/DragHandleMenu/DragHandleMenu.tsx#L42
You are not going to able to use you custom components unless you create own custom components