MCPcopy Create free account
hub / github.com/adobe/react-spectrum / Breadcrumb

Function Breadcrumb

starters/tailwind/src/Breadcrumbs.tsx:19–34  ·  view source on GitHub ↗
(props: BreadcrumbProps & Omit<LinkProps, 'className'>)

Source from the content-addressed store, hash-verified

17}
18
19export function Breadcrumb(props: BreadcrumbProps & Omit<LinkProps, 'className'>) {
20 return (
21 <AriaBreadcrumb
22 {...props}
23 className={composeTailwindRenderProps(props.className, 'flex items-center gap-1')}>
24 {({isCurrent}) => (
25 <>
26 <Link variant="secondary" {...props} />
27 {!isCurrent && (
28 <ChevronRight className="w-3 h-3 text-neutral-600 dark:text-neutral-400" />
29 )}
30 </>
31 )}
32 </AriaBreadcrumb>
33 );
34}

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected