breadcrumb
agentmesh/breadcrumbFreeComponent
shadcn/ui publishes no description for this item.
Live preview
live · rendered by the registry
Rendered by shadcn/ui on their own page — this is the component running, not a screenshot of it.Install it
npx shadcn@latest add https://raw.githubusercontent.com/ombhanushaliii/agentmesh/main/example/ui/apps/v4/public/r/styles/base-vega/breadcrumb.jsonSource
1import * as React from "react"2import { mergeProps } from "@base-ui/react/merge-props"3import { useRender } from "@base-ui/react/use-render"45import { cn } from "@/registry/base-vega/lib/utils"6import { IconPlaceholder } from "@/app/(create)/components/icon-placeholder"78function Breadcrumb({ className, ...props }: React.ComponentProps<"nav">) {9 return (10 <nav11 aria-label="breadcrumb"12 data-slot="breadcrumb"13 className={cn(className)}14 {...props}15 />16 )17}1819function BreadcrumbList({ className, ...props }: React.ComponentProps<"ol">) {20 return (21 <ol22 data-slot="breadcrumb-list"23 className={cn(24 "flex flex-wrap items-center gap-1.5 text-sm wrap-break-word text-muted-foreground sm:gap-2.5",25 className26 )}27 {...props}28 />29 )30}3132function BreadcrumbItem({ className, ...props }: React.ComponentProps<"li">) {33 return (34 <li35 data-slot="breadcrumb-item"36 className={cn("inline-flex items-center gap-1.5", className)}37 {...props}38 />39 )40}4142function BreadcrumbLink({43 className,44 render,45 ...props46}: useRender.ComponentProps<"a">) {47 return useRender({48 defaultTagName: "a",49 props: mergeProps<"a">(50 {51 className: cn("transition-colors hover:text-foreground", className),52 },53 props54 ),55 render,56 state: {57 slot: "breadcrumb-link",58 },59 })60}6162function BreadcrumbPage({ className, ...props }: React.ComponentProps<"span">) {63 return (64 <span65 data-slot="breadcrumb-page"66 role="link"67 aria-disabled="true"68 aria-current="page"69 className={cn("font-normal text-foreground", className)}70 {...props}71 />72 )73}7475function BreadcrumbSeparator({76 children,77 className,78 ...props79}: React.ComponentProps<"li">) {80 return (81 <li82 data-slot="breadcrumb-separator"83 role="presentation"84 aria-hidden="true"85 className={cn("[&>svg]:size-3.5", className)}86 {...props}87 >88 {children ?? (89 <IconPlaceholder90 lucide="ChevronRightIcon"91 tabler="IconChevronRight"92 hugeicons="ArrowRight01Icon"93 phosphor="CaretRightIcon"94 remixicon="RiArrowRightSLine"95 className="cn-rtl-flip"96 />97 )}98 </li>99 )100}101102function BreadcrumbEllipsis({103 className,104 ...props105}: React.ComponentProps<"span">) {106 return (107 <span108 data-slot="breadcrumb-ellipsis"109 role="presentation"110 aria-hidden="true"111 className={cn(112// … truncated
Files it writes
More from shadcn/ui
All 201 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| accordionaccordion | shadcn/ui | Components | Free | no deps | |
| alertalert | shadcn/ui | Components | Free | no deps | |
| alert-dialogalert-dialog | shadcn/ui | Components | Free | no deps | |
| aspect-ratioaspect-ratio | shadcn/ui | Components | Free | no deps | |
| avataravatar | shadcn/ui | Components | Free | no deps | |
| badgebadge | shadcn/ui | Components | Free | no deps | |
| buttonbutton | shadcn/ui | Components | Free | no deps | |
| button-groupbutton-group | shadcn/ui | Components | Free | no deps |
