diff --git a/webui2/src/components/ui/button.tsx b/webui2/src/components/ui/button.tsx index 1f87e65c0f70d3b9c7e44ccc969d709d8289699b..b4f023621819f49669dece8f85757b8aa6689892 100644 --- a/webui2/src/components/ui/button.tsx +++ b/webui2/src/components/ui/button.tsx @@ -1,5 +1,5 @@ import { cva, type VariantProps } from "class-variance-authority"; -import { Slot } from "radix-ui"; +import { Slot as SlotPrimitive } from "radix-ui"; import * as React from "react"; import { cn } from "@/lib/utils"; @@ -38,7 +38,7 @@ export interface ButtonProps const Button = React.forwardRef( ({ className, variant, size, asChild = false, ...props }, ref) => { - const Comp = asChild ? Slot : "button"; + const Comp = asChild ? SlotPrimitive.Root : "button"; return ( );