Catalogo design-system layout/dividers

← catalogo / layout/dividers

Layout · Dividers · With title and button

TW-LA-DI-07 Tailwind Plus

tailwind/application-ui/layout/dividers/07-with-title-and-button

Sorgente (html)

<div class="relative flex items-center justify-between">
  <span class="bg-white pr-3 text-base font-semibold text-gray-900 dark:bg-gray-900 dark:text-white">Projects</span>
  <div class="flex w-full items-center">
    <div aria-hidden="true" class="w-full border-t border-gray-300 dark:border-white/15"></div>
    <button type="button" class="inline-flex items-center gap-x-1.5 rounded-full bg-white px-3 py-1.5 text-sm font-semibold whitespace-nowrap text-gray-900 shadow-xs inset-ring inset-ring-gray-300 hover:bg-gray-50 dark:bg-white/10 dark:text-white dark:shadow-none dark:inset-ring-white/5 dark:hover:bg-white/20">
      <svg viewBox="0 0 20 20" fill="currentColor" data-slot="icon" aria-hidden="true" class="-mr-0.5 -ml-1 size-5 text-gray-400">
        <path d="M10.75 4.75a.75.75 0 0 0-1.5 0v4.5h-4.5a.75.75 0 0 0 0 1.5h4.5v4.5a.75.75 0 0 0 1.5 0v-4.5h4.5a.75.75 0 0 0 0-1.5h-4.5v-4.5Z" />
      </svg>
      <span>Button text</span>
    </button>
  </div>
</div>