mirror of https://github.com/buster-so/buster.git
Update Toolbar.tsx
This commit is contained in:
parent
4d3580bf3a
commit
0455da1455
|
@ -16,17 +16,18 @@ import { Separator } from '@/components/ui/separator';
|
|||
import { TooltipBase as Tooltip, TooltipTrigger } from '@/components/ui/tooltip';
|
||||
import { cn } from '@/lib/utils';
|
||||
|
||||
export function Toolbar({
|
||||
className,
|
||||
...props
|
||||
}: React.ComponentProps<typeof ToolbarPrimitive.Root>) {
|
||||
export const Toolbar = React.forwardRef<
|
||||
React.ElementRef<typeof ToolbarPrimitive.Root>,
|
||||
React.ComponentPropsWithoutRef<typeof ToolbarPrimitive.Root>
|
||||
>(function Toolbar({ className, ...props }, ref) {
|
||||
return (
|
||||
<ToolbarPrimitive.Root
|
||||
ref={ref}
|
||||
className={cn('relative flex items-center select-none', className)}
|
||||
{...props}
|
||||
/>
|
||||
);
|
||||
}
|
||||
});
|
||||
|
||||
export function ToolbarToggleGroup({
|
||||
className,
|
||||
|
|
Loading…
Reference in New Issue