Skip to content

Commit a61ee86

Browse files
fix: correct installation command for breadcrumb component in documentation and fix aria bugs and props issues.
1 parent 4538d4e commit a61ee86

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

components/retroui/Breadcrumb.tsx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@ import { cn } from "@/lib/utils"
55

66
const BreadcrumbRoot = React.forwardRef<
77
HTMLElement,
8-
React.ComponentPropsWithoutRef<"nav"> & {
9-
separator?: React.ReactNode
10-
}
8+
React.ComponentPropsWithoutRef<"nav">
119
>(({ className, ...props }, ref) => (
1210
<nav
1311
ref={ref}
@@ -65,8 +63,6 @@ const BreadcrumbPage = React.forwardRef<
6563
>(({ className, ...props }, ref) => (
6664
<span
6765
ref={ref}
68-
role="link"
69-
aria-disabled="true"
7066
aria-current="page"
7167
className={cn("text-foreground font-semibold", className)}
7268
{...props}
@@ -96,7 +92,6 @@ const BreadcrumbEllipsis = ({
9692
}: React.ComponentProps<"span">) => (
9793
<span
9894
role="presentation"
99-
aria-hidden="true"
10095
className={cn("flex h-9 w-9 items-center justify-center", className)}
10196
{...props}
10297
>

content/docs/components/breadcrumb.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ lastUpdated: 12 May, 2025
1111
<ComponentInstall>
1212
<ComponentInstall.Cli>
1313
```sh
14-
npx shadcn@latest add "https://retroui.dev/r/badge.json"
14+
npx shadcn@latest add "https://retroui.dev/r/breadcrumb.json"
1515
```
1616
</ComponentInstall.Cli>
1717
<ComponentInstall.Manual>

0 commit comments

Comments
 (0)