+```tsx
+const FloatMenuItem = ({ panel, api, close }: IContextMenuItemComponentProps) => (
+ {
+ api.addFloatingGroup(panel);
+ close();
+ }}
+ >
+ Float tab
+
+);
+
+// then reference it as a component item
+getTabContextMenuItems={(params) => [
+ 'close',
+ 'separator',
+ { component: FloatMenuItem },
+]}
+```
+
+
+