We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f17491 commit f2b38a7Copy full SHA for f2b38a7
src/components/ui/breadcrumb.tsx
@@ -1,4 +1,5 @@
1
import * as React from "react"
2
+import Link, { LinkProps } from "next/link"
3
import { LuChevronRight, LuMoreHorizontal } from "react-icons/lu"
4
import { Slot } from "@radix-ui/react-slot"
5
@@ -44,11 +45,12 @@ BreadcrumbItem.displayName = "BreadcrumbItem"
44
45
46
const BreadcrumbLink = React.forwardRef<
47
HTMLAnchorElement,
- React.ComponentPropsWithoutRef<"a"> & {
48
- asChild?: boolean
49
- }
+ React.ComponentPropsWithoutRef<"a"> &
+ LinkProps & {
50
+ asChild?: boolean
51
+ }
52
>(({ asChild, className, ...props }, ref) => {
- const Comp = asChild ? Slot : "a"
53
+ const Comp = asChild ? Slot : Link
54
55
return (
56
<Comp
0 commit comments