BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/thegridcn/breadcrumb

Breadcrumb

thegridcn/breadcrumb
FreeComponent

thegridcn publishes no description for this item.

See it running

Open the demo on thegridcn

thegridcn.com/r/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://thegridcn.com/r/breadcrumb.json

Source

src/components/ui/breadcrumb.tsxthegridcn.com/r/breadcrumb.json
1import * as React from "react"
2import { Slot } from "@radix-ui/react-slot"
3import { ChevronRight, MoreHorizontal } from "lucide-react"
4
5import { cn } from "@/lib/utils"
6
7function Breadcrumb({ ...props }: React.ComponentProps<"nav">) {
8 return <nav aria-label="breadcrumb" data-slot="breadcrumb" {...props} />
9}
10
11function BreadcrumbList({ className, ...props }: React.ComponentProps<"ol">) {
12 return (
13 <ol
14 data-slot="breadcrumb-list"
15 className={cn(
16 "text-muted-foreground flex flex-wrap items-center gap-1.5 text-sm break-words sm:gap-2.5",
17 className
18 )}
19 {...props}
20 />
21 )
22}
23
24function BreadcrumbItem({ className, ...props }: React.ComponentProps<"li">) {
25 return (
26 <li
27 data-slot="breadcrumb-item"
28 className={cn("inline-flex items-center gap-1.5", className)}
29 {...props}
30 />
31 )
32}
33
34function 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
52function BreadcrumbPage({ className, ...props }: React.ComponentProps<"span">) {
53 return (
54 <span
55 data-slot="breadcrumb-page"
56 role="link"
57 aria-disabled="true"
58 aria-current="page"
59 className={cn("text-foreground font-normal", className)}
60 {...props}
61 />
62 )
63}
64
65function BreadcrumbSeparator({
66 children,
67 className,
68 ...props
69}: React.ComponentProps<"li">) {
70 return (
71 <li
72 data-slot="breadcrumb-separator"
73 role="presentation"
74 aria-hidden="true"
75 className={cn("[&>svg]:size-3.5", className)}
76 {...props}
77 >
78 {children ?? <ChevronRight />}
79 </li>
80 )
81}
82
83function BreadcrumbEllipsis({
84 className,
85 ...props
86}: React.ComponentProps<"span">) {
87 return (
88 <span
89 data-slot="breadcrumb-ellipsis"
90 role="presentation"
91 aria-hidden="true"
92 className={cn("flex size-9 items-center justify-center", className)}
93 {...props}
94 >
95 <MoreHorizontal className="size-4" />
96 <span className="sr-only">More</span>
97 </span>
98 )
99}
100
101export {
102 Breadcrumb,
103 BreadcrumbList,
104 BreadcrumbItem,
105 BreadcrumbLink,
106 BreadcrumbPage,
107 BreadcrumbSeparator,
108 BreadcrumbEllipsis,
109}

What it pulls in

npm packages

  • @radix-ui/react-slot
  • lucide-react

Files it writes

  • src/components/ui/breadcrumb.tsx

Facts

Registry
thegridcn
Type
registry:component
Access
Free
Files written
1
Licence
the repository states none
First indexed
2026-08-04
Last confirmed
today

Go to the source

Docs on thegridcn thegridcn.com Raw registry item This item as JSON

More from thegridcn

All 139 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
AccordionaccordionthegridcnComponentsFree2 deps
Agent Avataragent-avatarthegridcnComponentsFreeno deps
AlertalertthegridcnComponentsFree1 dep
Alert Dialogalert-dialogthegridcnComponentsFree1 dep
Announcement Barannouncement-barthegridcnComponentsFreeno deps
Anomaly Banneranomaly-bannerthegridcnComponentsFreeno deps
Arrival Panelarrival-panelthegridcnComponentsFreeno deps
Aspect Ratioaspect-ratiothegridcnComponentsFree1 dep
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