Replace monolithic radix-ui with scoped @radix-ui packages.
Co-authored-by: Cursor <[email protected]>
This commit is contained in:
1 parent
741c3b5f51
commit
8bc4264f43
14 files changed
+58
-701
No files matched your search
@@ -1,5 +1,5 @@
|
||||
import { cva, type VariantProps } from "class-variance-authority";
|
||||
import { Slot } from "radix-ui";
|
||||
import { Slot } from "@radix-ui/react-slot";
|
||||
import type * as React from "react";
|
||||
|
||||
import { cn } from "@/lib/utils";
|
||||
@@ -33,7 +33,7 @@ function Badge({
|
||||
...props
|
||||
}: React.ComponentProps<"span"> &
|
||||
VariantProps<typeof badgeVariants> & { asChild?: boolean }) {
|
||||
const Comp = asChild ? Slot.Root : "span";
|
||||
const Comp = asChild ? Slot : "span";
|
||||
|
||||
return (
|
||||
<Comp
|
||||
|
||||
Reference in new issue
Block a user