Team Grid Cards
A responsive card grid of people with gradient-initials avatars, names and roles.
3 個のフレームワーク初級
A compact divided list of people, each row an avatar with name, role and an optional tag.
<section class="mx-auto w-full max-w-3xl px-4 py-12 sm:px-6 sm:py-16">
<h2 class="text-2xl font-bold tracking-tight text-gray-900 sm:text-3xl dark:text-gray-100">The team</h2>
<ul class="mt-8 divide-y divide-gray-200 dark:divide-gray-800">
<li class="flex items-center gap-4 py-4">
<span aria-hidden="true" class="inline-flex h-12 w-12 shrink-0 items-center justify-center rounded-full bg-gradient-to-br from-blue-500 to-indigo-600 text-sm font-semibold text-white">PR</span>
<div class="min-w-0">
<h3 class="truncate text-base font-semibold text-gray-900 dark:text-gray-100">Priya Raman</h3>
<p class="truncate text-sm text-gray-600 dark:text-gray-400">Co-founder, strategy</p>
</div>
<span class="ml-auto hidden shrink-0 rounded-full bg-gray-100 px-2.5 py-1 text-xs font-medium text-gray-600 sm:inline dark:bg-gray-800 dark:text-gray-300">Leadership</span>
</li>
<li class="flex items-center gap-4 py-4">
<span aria-hidden="true" class="inline-flex h-12 w-12 shrink-0 items-center justify-center rounded-full bg-gradient-to-br from-emerald-500 to-teal-600 text-sm font-semibold text-white">TA</span>
<div class="min-w-0">
<h3 class="truncate text-base font-semibold text-gray-900 dark:text-gray-100">Tom Ashcroft</h3>
<p class="truncate text-sm text-gray-600 dark:text-gray-400">Head of engineering</p>
</div>
<span class="ml-auto hidden shrink-0 rounded-full bg-gray-100 px-2.5 py-1 text-xs font-medium text-gray-600 sm:inline dark:bg-gray-800 dark:text-gray-300">Engineering</span>
</li>
</ul>
</section>| Prop | 型 | デフォルト | 説明 |
|---|---|---|---|
title | string | 'The team' | カードの見出しテキスト。 |
members必須 | TeamMember[] | - | グリッドに表示するメンバー。 |
className | string | - | ルート要素にマージされる追加クラス。 |
A dense roster layout: `min-w-0` and `truncate` let long names shorten instead of shoving the department tag off a 320px screen, and that tag hides below `sm`. Drive it with `members`, each optionally carrying a `department`.