Catalogo design-system data-display/description-lists

← catalogo / data-display/description-lists

Data display · Description lists · Left aligned with inline actions

TW-DD-DL-05 Tailwind Plus

tailwind/application-ui/data-display/description-lists/06-left-aligned-with-inline-actions

Da toccare per il marchio

  • colore indigo: sostituisci col colore del marchio

Sorgente (html)

<div class="px-4 sm:px-0">
  <h3 class="text-base/7 font-semibold text-gray-900 dark:text-white">Applicant Information</h3>
  <p class="mt-1 max-w-2xl text-sm/6 text-gray-500 dark:text-gray-400">Personal details and application.</p>
</div>
<div class="mt-6 border-t border-gray-100 dark:border-white/10">
  <dl class="divide-y divide-gray-100 dark:divide-white/10">
    <div class="px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0">
      <dt class="text-sm/6 font-medium text-gray-900 dark:text-white">Full name</dt>
      <dd class="mt-1 flex text-sm/6 text-gray-700 sm:col-span-2 sm:mt-0 dark:text-gray-400">
        <span class="grow">Margot Foster</span>
        <span class="ml-4 shrink-0">
          <button type="button" class="rounded-md bg-white font-medium text-indigo-600 hover:text-indigo-500 dark:bg-transparent dark:text-indigo-400 dark:hover:text-indigo-300">Update</button>
        </span>
      </dd>
    </div>
    <div class="px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0">
      <dt class="text-sm/6 font-medium text-gray-900 dark:text-white">Application for</dt>
      <dd class="mt-1 flex text-sm/6 text-gray-700 sm:col-span-2 sm:mt-0 dark:text-gray-400">
        <span class="grow">Backend Developer</span>
        <span class="ml-4 shrink-0">
          <button type="button" class="rounded-md bg-white font-medium text-indigo-600 hover:text-indigo-500 dark:bg-transparent dark:text-indigo-400 dark:hover:text-indigo-300">Update</button>
        </span>
      </dd>
    </div>
    <div class="px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0">
      <dt class="text-sm/6 font-medium text-gray-900 dark:text-white">Email address</dt>
      <dd class="mt-1 flex text-sm/6 text-gray-700 sm:col-span-2 sm:mt-0 dark:text-gray-400">
        <span class="grow">margotfoster@example.com</span>
        <span class="ml-4 shrink-0">
          <button type="button" class="rounded-md bg-white font-medium text-indigo-600 hover:text-indigo-500 dark:bg-transparent dark:text-indigo-400 dark:hover:text-indigo-300">Update</button>
        </span>
      </dd>
    </div>
    <div class="px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0">
      <dt class="text-sm/6 font-medium text-gray-900 dark:text-white">Salary expectation</dt>
      <dd class="mt-1 flex text-sm/6 text-gray-700 sm:col-span-2 sm:mt-0 dark:text-gray-400">
        <span class="grow">$120,000</span>
        <span class="ml-4 shrink-0">
          <button type="button" class="rounded-md bg-white font-medium text-indigo-600 hover:text-indigo-500 dark:bg-transparent dark:text-indigo-400 dark:hover:text-indigo-300">Update</button>
        </span>
      </dd>
    </div>
    <div class="px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0">
      <dt class="text-sm/6 font-medium text-gray-900 dark:text-white">About</dt>
      <dd class="mt-1 flex text-sm/6 text-gray-700 sm:col-span-2 sm:mt-0 dark:text-gray-400">
        <span class="grow">Fugiat ipsum ipsum deserunt culpa aute sint do nostrud anim incididunt cillum culpa consequat. Excepteur qui ipsum aliquip consequat sint. Sit id mollit nulla mollit nostrud in ea officia proident. Irure nostrud pariatur mollit ad adipisicing reprehenderit deserunt qui eu.</span>
        <span class="ml-4 shrink-0">
          <button type="button" class="rounded-md bg-white font-medium text-indigo-600 hover:text-indigo-500 dark:bg-transparent dark:text-indigo-400 dark:hover:text-indigo-300">Update</button>
        </span>
      </dd>
    </div>
    <div class="px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0">
      <dt class="text-sm/6 font-medium text-gray-900 dark:text-white">Attachments</dt>
      <dd class="mt-1 text-sm/6 text-gray-700 sm:col-span-2 sm:mt-0 dark:text-gray-400">
        <ul role="list" class="divide-y divide-gray-100 rounded-md border border-gray-200 dark:divide-white/5 dark:border-white/10">
          <li class="flex items-center justify-between py-4 pr-5 pl-4 text-sm/6">
            <div class="flex w-0 flex-1 items-center">
              <svg viewBox="0 0 20 20" fill="currentColor" data-slot="icon" aria-hidden="true" class="size-5 shrink-0 text-gray-400 dark:text-gray-500">
                <path d="M15.621 4.379a3 3 0 0 0-4.242 0l-7 7a3 3 0 0 0 4.241 4.243h.001l.497-.5a.75.75 0 0 1 1.064 1.057l-.498.501-.002.002a4.5 4.5 0 0 1-6.364-6.364l7-7a4.5 4.5 0 0 1 6.368 6.36l-3.455 3.553A2.625 2.625 0 1 1 9.52 9.52l3.45-3.451a.75.75 0 1 1 1.061 1.06l-3.45 3.451a1.125 1.125 0 0 0 1.587 1.595l3.454-3.553a3 3 0 0 0 0-4.242Z" clip-rule="evenodd" fill-rule="evenodd" />
              </svg>
              <div class="ml-4 flex min-w-0 flex-1 gap-2">
                <span class="truncate font-medium text-gray-900 dark:text-white">resume_back_end_developer.pdf</span>
                <span class="shrink-0 text-gray-400 dark:text-gray-500">2.4mb</span>
              </div>
            </div>
            <div class="ml-4 flex shrink-0 space-x-4">
              <button type="button" class="rounded-md bg-white font-medium text-indigo-600 hover:text-indigo-500 dark:bg-transparent dark:text-indigo-400 dark:hover:text-indigo-300">Update</button>
              <span aria-hidden="true" class="text-gray-200 dark:text-gray-600">|</span>
              <button type="button" class="rounded-md bg-white font-medium text-gray-900 hover:text-gray-800 dark:bg-transparent dark:text-gray-400 dark:hover:text-white">Remove</button>
            </div>
          </li>
          <li class="flex items-center justify-between py-4 pr-5 pl-4 text-sm/6">
            <div class="flex w-0 flex-1 items-center">
              <svg viewBox="0 0 20 20" fill="currentColor" data-slot="icon" aria-hidden="true" class="size-5 shrink-0 text-gray-400 dark:text-gray-500">
                <path d="M15.621 4.379a3 3 0 0 0-4.242 0l-7 7a3 3 0 0 0 4.241 4.243h.001l.497-.5a.75.75 0 0 1 1.064 1.057l-.498.501-.002.002a4.5 4.5 0 0 1-6.364-6.364l7-7a4.5 4.5 0 0 1 6.368 6.36l-3.455 3.553A2.625 2.625 0 1 1 9.52 9.52l3.45-3.451a.75.75 0 1 1 1.061 1.06l-3.45 3.451a1.125 1.125 0 0 0 1.587 1.595l3.454-3.553a3 3 0 0 0 0-4.242Z" clip-rule="evenodd" fill-rule="evenodd" />
              </svg>
              <div class="ml-4 flex min-w-0 flex-1 gap-2">
                <span class="truncate font-medium text-gray-900 dark:text-white">coverletter_back_end_developer.pdf</span>
                <span class="shrink-0 text-gray-400 dark:text-gray-500">4.5mb</span>
              </div>
            </div>
            <div class="ml-4 flex shrink-0 space-x-4">
              <button type="button" class="rounded-md bg-white font-medium text-indigo-600 hover:text-indigo-500 dark:bg-transparent dark:text-indigo-400 dark:hover:text-indigo-300">Update</button>
              <span aria-hidden="true" class="text-gray-200 dark:text-gray-600">|</span>
              <button type="button" class="rounded-md bg-white font-medium text-gray-900 hover:text-gray-800 dark:bg-transparent dark:text-gray-400 dark:hover:text-white">Remove</button>
            </div>
          </li>
        </ul>
      </dd>
    </div>
  </dl>
</div>