BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/optics/breadcrumb

Breadcrumb

optics/breadcrumb
FreeComponent

Displays the path to the current resource using a hierarchy of links.

See it running

Open the demo on optics

optics.agusmayol.com.ar/components/breadcrumb
Open
This registry sends X-Frame-Options, so its page cannot be embedded here. The link is the same page the frame would have shown.

Install it

npx shadcn@latest add https://optics.agusmayol.com.ar/r/breadcrumb.json

Source

registry/optics/breadcrumb.jsxoptics.agusmayol.com.ar/r/breadcrumb.json
1import * as React from "react";
2import { mergeProps } from "@base-ui/react/merge-props";
3import { useRender } from "@base-ui/react/use-render";
4
5import { cn } from "@/lib/utils";
6import { ChevronRightIcon, MoreHorizontalIcon } from "lucide-react";
7
8function Breadcrumb({ className = "", ...props }) {
9 return (
10 <nav
11 aria-label="breadcrumb"
12 data-slot="breadcrumb"
13 className={cn(className)}
14 {...props}
15 />
16 );
17}
18
19function BreadcrumbList({ className = "", ...props }) {
20 return (
21 <ol
22 data-slot="breadcrumb-list"
23 className={cn(
24 "text-muted-foreground gap-1.5 text-xs/relaxed flex flex-wrap items-center break-words",
25 className,
26 )}
27 {...props}
28 />
29 );
30}
31
32function BreadcrumbItem({ className = "", ...props }) {
33 return (
34 <li
35 data-slot="breadcrumb-item"
36 className={cn("gap-1 inline-flex items-center", className)}
37 {...props}
38 />
39 );
40}
41
42function BreadcrumbLink({ className = "", render = undefined, ...props }) {
43 return useRender({
44 defaultTagName: "a",
45 props: mergeProps(
46 {
47 className: cn("hover:text-foreground transition-colors", className),
48 },
49 props,
50 ),
51 render,
52 state: {
53 slot: "breadcrumb-link",
54 },
55 });
56}
57
58function BreadcrumbPage({ className = "", ...props }) {
59 return (
60 <span
61 data-slot="breadcrumb-page"
62 role="link"
63 aria-disabled="true"
64 aria-current="page"
65 className={cn("text-foreground font-normal", className)}
66 {...props}
67 />
68 );
69}
70
71function BreadcrumbSeparator({ children = null, className = "", ...props }) {
72 return (
73 <li
74 data-slot="breadcrumb-separator"
75 role="presentation"
76 aria-hidden="true"
77 className={cn("[&>svg]:size-3.5", className)}
78 {...props}
79 >
80 {children ?? <ChevronRightIcon />}
81 </li>
82 );
83}
84
85function BreadcrumbEllipsis({ className = "", ...props }) {
86 return (
87 <span
88 data-slot="breadcrumb-ellipsis"
89 role="presentation"
90 aria-hidden="true"
91 className={cn(
92 "size-4 [&>svg]:size-3.5 flex items-center justify-center",
93 className,
94 )}
95 {...props}
96 >
97 <MoreHorizontalIcon />
98 <span className="sr-only">More</span>
99 </span>
100 );
101}
102
103Breadcrumb.displayName = "Breadcrumb";
104BreadcrumbList.displayName = "BreadcrumbList";
105BreadcrumbItem.displayName = "BreadcrumbItem";
106BreadcrumbLink.displayName = "BreadcrumbLink";
107BreadcrumbPage.displayName = "BreadcrumbPage";
108BreadcrumbSeparator.displayName = "BreadcrumbSeparator";
109BreadcrumbEllipsis.displayName = "BreadcrumbEllipsis";
110
111export {
112 Breadcrumb,
113 BreadcrumbList,
114 BreadcrumbItem,
115// … truncated

What it pulls in

npm packages

  • @base-ui/react
  • lucide-react
  • clsx
  • tailwind-merge

Other registry items

  • https://optics.agusmayol.com.ar/r/button.json
  • https://optics.agusmayol.com.ar/r/utils.json

Files it writes

  • registry/optics/breadcrumb.jsx

Facts

Registry
optics
Type
registry:component
Access
Free
Files written
1
Licence
MIT
First indexed
2026-08-01
Last confirmed
yesterday

Go to the source

Docs on optics optics.agusmayol.com.ar AgusMayol/optics on GitHub Raw registry item This item as JSON

More from optics

All 79 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
AccordionaccordionopticsComponentsFree5 deps
AlertalertopticsComponentsFree4 deps
Alert Dialogalert-dialogopticsComponentsFree4 deps
Aspect Ratioaspect-ratioopticsComponentsFree2 deps
Auto Heightauto-heightopticsComponentsFree3 deps
AvataravataropticsComponentsFree3 deps
BadgebadgeopticsComponentsFree4 deps
ButtonbuttonopticsComponentsFree4 deps
BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex