Function
BreadcrumbLink
({
asChild,
className,
...props
}: React.ComponentProps<"a"> & {
asChild?: boolean
})
Source from the content-addressed store, hash-verified
| 32 | } |
| 33 | |
| 34 | function BreadcrumbLink({ |
| 35 | asChild, |
| 36 | className, |
| 37 | ...props |
| 38 | }: React.ComponentProps<"a"> & { |
| 39 | asChild?: boolean |
| 40 | }) { |
| 41 | const Comp = asChild ? Slot : "a" |
| 42 | |
| 43 | return ( |
| 44 | <Comp |
| 45 | data-slot="breadcrumb-link" |
| 46 | className={cn("hover:text-foreground transition-colors", className)} |
| 47 | {...props} |
| 48 | /> |
| 49 | ) |
| 50 | } |
| 51 | |
| 52 | function BreadcrumbPage({ className, ...props }: React.ComponentProps<"span">) { |
| 53 | return ( |
Callers
nothing calls this directly
Tested by
no test coverage detected