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 { 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,
|
||||||
|
|
Loading…
Reference in New Issue