BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/solid-ui/breadcrumb

Breadcrumb

solid-ui/breadcrumb
FreeComponent

A breadcrumb component

Live preview

live · rendered by the registry
Rendered by solid-ui on their own page — this is the component running, not a screenshot of it.

Install it

npx shadcn@latest add https://www.solid-ui.com/r/breadcrumb.json

Source

src/registry/ui/breadcrumb.tsxwww.solid-ui.com/r/breadcrumb.json
1import type { Component, ComponentProps, JSX, ValidComponent } from "solid-js"
2import { Show, splitProps } from "solid-js"
3
4import type { PolymorphicProps } from "@kobalte/core"
5import * as BreadcrumbPrimitive from "@kobalte/core/breadcrumbs"
6
7import { cn } from "~/lib/utils"
8
9const Breadcrumb = BreadcrumbPrimitive.Root
10
11const BreadcrumbList: Component<ComponentProps<"ol">> = (props) => {
12 const [local, others] = splitProps(props, ["class"])
13 return (
14 <ol
15 class={cn(
16 "flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5",
17 local.class
18 )}
19 {...others}
20 />
21 )
22}
23
24const BreadcrumbItem: Component<ComponentProps<"li">> = (props) => {
25 const [local, others] = splitProps(props, ["class"])
26 return <li class={cn("inline-flex items-center gap-1.5", local.class)} {...others} />
27}
28
29type BreadcrumbLinkProps<T extends ValidComponent = "a"> =
30 BreadcrumbPrimitive.BreadcrumbsLinkProps<T> & { class?: string | undefined }
31
32const BreadcrumbLink = <T extends ValidComponent = "a">(
33 props: PolymorphicProps<T, BreadcrumbLinkProps<T>>
34) => {
35 const [local, others] = splitProps(props as BreadcrumbLinkProps, ["class"])
36 return (
37 <BreadcrumbPrimitive.Link
38 class={cn(
39 "transition-colors hover:text-foreground data-[current]:font-normal data-[current]:text-foreground",
40 local.class
41 )}
42 {...others}
43 />
44 )
45}
46
47type BreadcrumbSeparatorProps<T extends ValidComponent = "span"> =
48 BreadcrumbPrimitive.BreadcrumbsSeparatorProps<T> & {
49 class?: string | undefined
50 children?: JSX.Element
51 }
52
53const BreadcrumbSeparator = <T extends ValidComponent = "span">(
54 props: PolymorphicProps<T, BreadcrumbSeparatorProps<T>>
55) => {
56 const [local, others] = splitProps(props as BreadcrumbSeparatorProps, ["class", "children"])
57 return (
58 <BreadcrumbPrimitive.Separator class={cn("[&>svg]:size-3.5", local.class)} {...others}>
59 <Show
60 when={local.children}
61 fallback={
62 <svg
63 xmlns="http://www.w3.org/2000/svg"
64 viewBox="0 0 24 24"
65 fill="none"
66 stroke="currentColor"
67 stroke-width="2"
68 stroke-linecap="round"
69 stroke-linejoin="round"
70 >
71 <path d="M9 6l6 6l-6 6" />
72 </svg>
73 }
74 >
75 {local.children}
76 </Show>
77 </BreadcrumbPrimitive.Separator>
78 )
79}
80
81const BreadcrumbEllipsis: Component<ComponentProps<"span">> = (props) => {
82// … truncated

What it pulls in

npm packages

  • solid-js
  • @kobalte/core

Files it writes

  • src/registry/ui/breadcrumb.tsx

Facts

Registry
solid-ui
Type
registry:ui
Access
Free
Files written
1
Licence
MIT
First indexed
2026-08-02
Last confirmed
today

Go to the source

Docs on solid-ui www.solid-ui.com stefan-karger/solid-ui on GitHub Raw registry item This item as JSON

More from solid-ui

All 55 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Accordionaccordionsolid-uiComponentsFree2 deps
Alertalertsolid-uiComponentsFree3 deps
Alert Dialogalert-dialogsolid-uiComponentsFree2 deps
Aspect Ratioaspect-ratiosolid-uiComponentsFree1 dep
Avataravatarsolid-uiComponentsFree2 deps
Badgebadgesolid-uiComponentsFree2 deps
Badge Deltabadge-deltasolid-uiComponentsFree2 deps
Bar Listbar-listsolid-uiComponentsFree1 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