We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c36bb52 commit 69e3fa5Copy full SHA for 69e3fa5
packages/react/src/components/SideMenu/DefaultButtons/DragHandleButton.tsx
@@ -18,7 +18,12 @@ export const DragHandleButton = <
18
I extends InlineContentSchema = DefaultInlineContentSchema,
19
S extends StyleSchema = DefaultStyleSchema
20
>(
21
- props: Omit<SideMenuProps<BSchema, I, S>, "addBlock">
+ props: Omit<SideMenuProps<BSchema, I, S>, "addBlock"> & {
22
+ /**
23
+ * The menu items to render.
24
+ */
25
+ children?: React.ReactNode;
26
+ }
27
) => {
28
const Components = useComponentsContext()!;
29
const dict = useDictionary();
@@ -45,7 +50,7 @@ export const DragHandleButton = <
45
50
icon={<MdDragIndicator size={24} data-test="dragHandle" />}
46
51
/>
47
52
</Components.Generic.Menu.Trigger>
48
- <Component block={props.block} />
53
+ <Component block={props.block}>{props.children}</Component>
49
54
</Components.Generic.Menu.Root>
55
);
56
};
0 commit comments