Skip to content

Unable to use DragHandleMenu children prop #1525

Closed
@fscs64

Description

@fscs64

Describe the bug
I want to use the DragHandleMenu component with my own custom subcomponents. It seems that can be done using specific children (

), but when you check the parent component It seems that no children are given to the component, so I am not able to customize the component.

I tried also to provide my own custom component using the 'dragHandleMenu' prop

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions