From 8d9c083741dbf4ec84ef9e5505dc7270959079ef Mon Sep 17 00:00:00 2001 From: Nick the Sick Date: Thu, 13 Mar 2025 12:40:27 +0100 Subject: [PATCH] fix: better expose setting a draghandlemenu's items #1525 --- .../SideMenu/DefaultButtons/DragHandleButton.tsx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/packages/react/src/components/SideMenu/DefaultButtons/DragHandleButton.tsx b/packages/react/src/components/SideMenu/DefaultButtons/DragHandleButton.tsx index b5039fe947..0972d20fb0 100644 --- a/packages/react/src/components/SideMenu/DefaultButtons/DragHandleButton.tsx +++ b/packages/react/src/components/SideMenu/DefaultButtons/DragHandleButton.tsx @@ -18,7 +18,12 @@ export const DragHandleButton = < I extends InlineContentSchema = DefaultInlineContentSchema, S extends StyleSchema = DefaultStyleSchema >( - props: Omit, "addBlock"> + props: Omit, "addBlock"> & { + /** + * The menu items to render. + */ + children?: React.ReactNode; + } ) => { const Components = useComponentsContext()!; const dict = useDictionary(); @@ -45,7 +50,7 @@ export const DragHandleButton = < icon={} /> - + {props.children} ); };