app-ui / navigation / breadcrumbs
Full Width Bar
02-full-width-bar.jsx
import { HomeIcon } from '@heroicons/react/20/solid'
const pages = [
{ name: 'Projects', href: '#', current: false },
{ name: 'Project Nero', href: '#', current: true },
]
export default function Example() {
return (
<nav
aria-label="Breadcrumb"
className="flex border-b border-gray-200 bg-white dark:border-white/10 dark:bg-gray-800/50"
>
<ol role="list" className="mx-auto flex w-full max-w-(--breakpoint-xl) space-x-4 px-4 sm:px-6 lg:px-8">
<li className="flex">
<div className="flex items-center">
<a href="#" className="text-gray-400 hover:text-gray-500 dark:text-gray-400 dark:hover:text-gray-300">
<HomeIcon aria-hidden="true" className="size-5 shrink-0" />
<span className="sr-only">Home</span>
</a>
</div>
</li>
{pages.map((page) => (
<li key={page.name} className="flex">
<div className="flex items-center">
<svg
fill="currentColor"
viewBox="0 0 24 44"
preserveAspectRatio="none"
aria-hidden="true"
className="h-full w-6 shrink-0 text-gray-200 dark:text-white/10"
>
<path d="M.293 0l22 22-22 22h1.414l22-22-22-22H.293z" />
</svg>
<a
href={page.href}
aria-current={page.current ? 'page' : undefined}
className="ml-4 text-sm font-medium text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-200"
>
{page.name}
</a>
</div>
</li>
))}
</ol>
</nav>
)
}