Application Steps Timeline with title, with highlighted current step', Dark

Live Preview
<div>
      <h2 class="sr-only">Steps</h2>

      <div
        class="relative after:absolute after:inset-x-0 after:top-1/2 after:block after:h-0.5 after:-translate-y-1/2 after:rounded-lg after:bg-gray-200 dark:after:bg-gray-700"
      >
        <ol
          class="relative z-10 flex justify-between text-sm font-medium text-gray-600 dark:text-gray-300"
        >
          <li class="flex items-center gap-2 bg-white p-2 dark:bg-gray-900">
            <span
              class="size-6 rounded-full bg-gray-100 text-center text-[10px]/6 font-bold dark:bg-gray-800"
            >
              1
            </span>

            <span class="hidden sm:block"> Details </span>
          </li>

          <li class="flex items-center gap-2 bg-white p-2 dark:bg-gray-900">
            <span
              class="size-6 rounded-full bg-blue-500 text-center text-[10px]/6 font-bold text-white"
            >
              2
            </span>

            <span class="hidden sm:block"> Address </span>
          </li>

          <li class="flex items-center gap-2 bg-white p-2 dark:bg-gray-900">
            <span
              class="size-6 rounded-full bg-gray-100 text-center text-[10px]/6 font-bold dark:bg-gray-800"
            >
              3
            </span>

            <span class="hidden sm:block"> Payment </span>
          </li>
        </ol>
      </div>
    </div>

Related components

More items from the merged UI library.

View all