diff --git a/apps/web/src/components/ui/report/Toolbar.tsx b/apps/web/src/components/ui/report/Toolbar.tsx index 66e22a720..424fc3492 100644 --- a/apps/web/src/components/ui/report/Toolbar.tsx +++ b/apps/web/src/components/ui/report/Toolbar.tsx @@ -236,32 +236,35 @@ export function ToolbarSplitButtonSecondary({ ); } -export function ToolbarToggleItem({ - className, - size = 'sm', - variant, - ...props -}: React.ComponentProps & - VariantProps) { +export const ToolbarToggleItem = React.forwardRef< + React.ElementRef, + React.ComponentProps & + VariantProps +>(function ToolbarToggleItem({ className, size = 'sm', variant, ...props }, ref) { return ( ); -} +}); -export function ToolbarGroup({ children, className }: React.ComponentProps<'div'>) { - return ( -