Tailwind CSS Breadcrumbs

Use our Tailwind CSS breadcrumbs component to simply create beautiful breadcrumbs for your pages with Material Tailwind.

Breadcrumbs are website links that allow users to track where they are on a website and how far they are from the homepage. They are highly important elements for your search engine optimisation (SEO) and user experience.

See below our versatile breadcrumbs component example that you can use in your Tailwind CSS project.



Breadcrumbs with icon

You can add any type of icon for the breadcrumbs component as easy as using icon in html.


Block Level Breadcrumbs

A breadcrumbs could be a block level component as well that get's all the available space in a row. You can display a breadcrumbs as a block level element using the w-full class.

<nav aria-label="breadcrumb" class="block w-full">
  <ol class="flex flex-wrap items-center w-full px-4 py-2 rounded-md bg-blue-gray-50 bg-opacity-60">
    <li
      class="flex items-center font-sans text-sm antialiased font-normal leading-normal transition-colors duration-300 cursor-pointer text-blue-gray-900 hover:text-light-blue-500">
      <a href="#" class="opacity-60">
        Docs
      </a>
      <span
        class="mx-2 font-sans text-sm antialiased font-normal leading-normal pointer-events-none select-none text-blue-gray-500">
        /
      </span>
    </li>
    <li
      class="flex items-center font-sans text-sm antialiased font-normal leading-normal transition-colors duration-300 cursor-pointer text-blue-gray-900 hover:text-light-blue-500">
      <a href="#" class="opacity-60">
        Components
      </a>
      <span
        class="mx-2 font-sans text-sm antialiased font-normal leading-normal pointer-events-none select-none text-blue-gray-500">
        /
      </span>
    </li>
    <li
      class="flex items-center font-sans text-sm antialiased font-normal leading-normal transition-colors duration-300 cursor-pointer text-blue-gray-900 hover:text-light-blue-500">
      <a href="#">Breadcrumbs</a>
    </li>
  </ol>
</nav>

Custom Breadcrumbs Separator

You can modify the Breadcrumbs separators, here is an example:

 <nav aria-label="breadcrumb" class="w-max">
  <ol class="flex flex-wrap items-center w-full px-4 py-2 rounded-md bg-blue-gray-50 bg-opacity-60">
    <li
      class="flex items-center font-sans text-sm antialiased font-normal leading-normal transition-colors duration-300 cursor-pointer text-blue-gray-900 hover:text-light-blue-500">
      <a href="#" class="opacity-60">
        Docs
      </a>
      <span
        class="mx-2 font-sans text-sm antialiased font-normal leading-normal pointer-events-none select-none text-blue-gray-500">
        -
      </span>
    </li>
    <li
      class="flex items-center font-sans text-sm antialiased font-normal leading-normal transition-colors duration-300 cursor-pointer text-blue-gray-900 hover:text-light-blue-500">
      <a href="#" class="opacity-60">
        Components
      </a>
      <span
        class="mx-2 font-sans text-sm antialiased font-normal leading-normal pointer-events-none select-none text-blue-gray-500">
        -
      </span>
    </li>
    <li
      class="flex items-center font-sans text-sm antialiased font-normal leading-normal transition-colors duration-300 cursor-pointer text-blue-gray-900 hover:text-light-blue-500">
      <a href="#">
        Breadcrumbs
      </a>
    </li>
  </ol>
</nav>

Breadcrumbs Custom Styles

You can customize the Breadcrumbs, here is an example: