File tree 1 file changed +7
-2
lines changed
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,12 @@ export const DragHandleButton = <
18
18
I extends InlineContentSchema = DefaultInlineContentSchema ,
19
19
S extends StyleSchema = DefaultStyleSchema
20
20
> (
21
- props : Omit < SideMenuProps < BSchema , I , S > , "addBlock" >
21
+ props : Omit < SideMenuProps < BSchema , I , S > , "addBlock" > & {
22
+ /**
23
+ * The menu items to render.
24
+ */
25
+ children ?: React . ReactNode ;
26
+ }
22
27
) => {
23
28
const Components = useComponentsContext ( ) ! ;
24
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 >
50
55
) ;
51
56
} ;
You can’t perform that action at this time.
0 commit comments