Breadcrumb Components

Tailwind CSS Breadcrumb

# Default breadcrumb

Code

1<nav class="flex" aria-label="Breadcrumb">
2<ol class="inline-flex items-center space-x-1 md:space-x-2 rtl:space-x-reverse">
3  <li class="inline-flex items-center">
4    <a href="#" class="inline-flex items-center text-sm font-medium text-gray-700 hover:text-blue-600 ">
5      <svg class="w-3 h-3 me-2.5" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 20 20">
6        <path d="m19.707 9.293-2-2-7-7a1 1 0 0 0-1.414 0l-7 7-2 2a1 1 0 0 0 1.414 1.414L2 10.414V18a2 2 0 0 0 2 2h3a1 1 0 0 0 1-1v-4a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v4a1 1 0 0 0 1 1h3a2 2 0 0 0 2-2v-7.586l.293.293a1 1 0 0 0 1.414-1.414Z"/>
7      </svg>
8      Home
9    </a>
10  </li>
11  <li>
12    <div class="flex items-center">
13      <svg class="rtl:rotate-180 w-3 h-3 text-gray-400 mx-1" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 6 10">
14        <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m1 9 4-4-4-4"/>
15      </svg>
16      <a href="#" class="ms-1 text-sm font-medium text-gray-700 hover:text-blue-600 md:ms-2 ">Projects</a>
17    </div>
18  </li>
19  <li aria-current="page">
20    <div class="flex items-center">
21      <svg class="rtl:rotate-180 w-3 h-3 text-gray-400 mx-1" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 6 10">
22        <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m1 9 4-4-4-4"/>
23      </svg>
24      <span class="ms-1 text-sm font-medium text-gray-500 md:ms-2 ">uiforge</span>
25    </div>
26  </li>
27</ol>
28</nav>

# Solid background

Code

1<!-- Breadcrumb -->
2    <nav class="flex px-5 py-3 text-gray-700 border border-gray-200 rounded-lg bg-gray-50 " aria-label="Breadcrumb">
3      <ol class="inline-flex items-center space-x-1 md:space-x-2 rtl:space-x-reverse">
4        <li class="inline-flex items-center">
5          <a href="#" class="inline-flex items-center text-sm font-medium text-gray-700 hover:text-blue-600 ">
6            <svg class="w-3 h-3 me-2.5" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 20 20">
7              <path d="m19.707 9.293-2-2-7-7a1 1 0 0 0-1.414 0l-7 7-2 2a1 1 0 0 0 1.414 1.414L2 10.414V18a2 2 0 0 0 2 2h3a1 1 0 0 0 1-1v-4a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v4a1 1 0 0 0 1 1h3a2 2 0 0 0 2-2v-7.586l.293.293a1 1 0 0 0 1.414-1.414Z"/>
8            </svg>
9            Home
10          </a>
11        </li>
12        <li>
13          <div class="flex items-center">
14            <svg class="rtl:rotate-180 block w-3 h-3 mx-1 text-gray-400 " aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 6 10">
15              <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m1 9 4-4-4-4"/>
16            </svg>
17            <a href="#" class="ms-1 text-sm font-medium text-gray-700 hover:text-blue-600 md:ms-2 ">Templates</a>
18          </div>
19        </li>
20        <li aria-current="page">
21          <div class="flex items-center">
22            <svg class="rtl:rotate-180  w-3 h-3 mx-1 text-gray-400" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 6 10">
23              <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m1 9 4-4-4-4"/>
24            </svg>
25            <span class="ms-1 text-sm font-medium text-gray-500 md:ms-2 ">uiforge</span>
26          </div>
27        </li>
28      </ol>
29    </nav>

# Header breadcrumb

Code

1<!-- Breadcrumb -->
2    <nav class="justify-between px-4 py-3 text-gray-700 border border-gray-200 rounded-lg sm:flex sm:px-5 bg-gray-50 " aria-label="Breadcrumb">
3      <ol class="inline-flex items-center mb-3 space-x-1 md:space-x-2 rtl:space-x-reverse sm:mb-0">
4        <li>
5          <div class="flex items-center">
6            <a href="#" class="ms-1 text-sm font-medium text-gray-700 hover:text-blue-600 md:ms-2 ">Uiforge.com</a>
7          </div>
8        </li>
9        <li aria-current="page">
10          <div class="flex items-center">
11            <svg class="rtl:rotate-180 w-3 h-3 mx-1 text-gray-400" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 6 10">
12              <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m1 9 4-4-4-4"/>
13            </svg>
14            <a href="#" class="ms-1 text-sm font-medium text-gray-700 hover:text-blue-600 md:ms-2 ">develop</a>
15          </div>
16        </li>
17        <li aria-current="page">
18          <div class="flex items-center ">
19            <svg class="rtl:rotate-180 w-3 h-3 mx-1 text-gray-400" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 6 10">
20              <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m1 9 4-4-4-4"/>
21            </svg>
22            <span class="mx-1 text-sm font-medium text-gray-500 md:mx-2 ">Issue #312</span><span class="bg-blue-100 text-blue-800 text-xs font-semibold me-2 px-2 py-0.5 rounded  hidden sm:flex">docs</span>
23          </div>
24        </li>
25      </ol>
26        <button  class="inline-flex items-center px-3 py-2 text-sm font-normal text-center text-gray-600 bg-gray-200 rounded-lg hover:bg-gray-300 focus:ring-4 focus:outline-none focus:ring-gray-100"><svg class="w-3 h-3 me-2" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 20">
27        <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 5v10M3 5a2 2 0 1 0 0-4 2 2 0 0 0 0 4Zm0 10a2 2 0 1 0 0 4 2 2 0 0 0 0-4Zm9-10v.4A3.6 3.6 0 0 1 8.4 9H6.61A3.6 3.6 0 0 0 3 12.605M14.458 3a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z"/>
28      </svg>Fix #6597<svg class="w-2.5 h-2.5 ms-2.5" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 10 6">
29        <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m1 1 4 4 4-4"/>
30      </svg>
31      </button>    
32    </nav>

# Chevron Background

Code

1<nav aria-label="Breadcrumb" class="flex">
2  <ol class="flex overflow-hidden rounded-lg border border-gray-200 text-gray-600">
3    <li class="flex items-center">
4      <a
5        href="#"
6        class="flex h-10 items-center gap-1.5 bg-gray-100 px-4 transition hover:text-gray-900"
7      >
8        <svg
9          xmlns="http://www.w3.org/2000/svg"
10          class="h-4 w-4"
11          fill="none"
12          viewBox="0 0 24 24"
13          stroke="currentColor"
14        >
15          <path
16            stroke-linecap="round"
17            stroke-linejoin="round"
18            stroke-width="2"
19            d="M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"
20          />
21        </svg>
22
23        <span class="ms-1.5 text-xs font-medium"> Home </span>
24      </a>
25    </li>
26
27    <li class="relative flex items-center">
28      <span
29        class="absolute inset-y-0 -start-px h-10 w-4 bg-gray-100 [clip-path:_polygon(0_0,_0%_100%,_100%_50%)] rtl:rotate-180"
30      >
31      </span>
32
33      <a
34        href="#"
35        class="flex h-10 items-center bg-white pe-4 ps-8 text-xs font-medium transition hover:text-gray-900"
36      >
37        Shirts
38      </a>
39    </li>
40  </ol>
41</nav>