Update Toolbar.tsx

This commit is contained in:
Nate Kelley 2025-08-07 23:35:31 -06:00
parent 4d3580bf3a
commit 0455da1455
No known key found for this signature in database
GPG Key ID: FD90372AB8D98B4F
1 changed files with 6 additions and 5 deletions

View File

@ -16,17 +16,18 @@ import { Separator } from '@/components/ui/separator';
import { TooltipBase as Tooltip, TooltipTrigger } from '@/components/ui/tooltip'; import { TooltipBase as Tooltip, TooltipTrigger } from '@/components/ui/tooltip';
import { cn } from '@/lib/utils'; import { cn } from '@/lib/utils';
export function Toolbar({ export const Toolbar = React.forwardRef<
className, React.ElementRef<typeof ToolbarPrimitive.Root>,
...props React.ComponentPropsWithoutRef<typeof ToolbarPrimitive.Root>
}: React.ComponentProps<typeof ToolbarPrimitive.Root>) { >(function Toolbar({ className, ...props }, ref) {
return ( return (
<ToolbarPrimitive.Root <ToolbarPrimitive.Root
ref={ref}
className={cn('relative flex items-center select-none', className)} className={cn('relative flex items-center select-none', className)}
{...props} {...props}
/> />
); );
} });
export function ToolbarToggleGroup({ export function ToolbarToggleGroup({
className, className,