Tables
Static tables built from the native table elements: styles, hover and stripes, density, avatars and badges, numbers, row and column themes, sticky header and columns, grouped headers and the empty state. Every table scrolls sideways on a narrow screen. For sorting, search, pagination and row selection use Data Tables.
Basic
A real <table> with a <caption> that names it (the caption prop, or the caption slot for markup; leave the caption out when a heading outside the table already names it), <thead>, <tbody> and scope on every header: scope="col" on the column headers and scope="row" on the first cell of each row, so a screen reader announces Alex Morgan, Department: Engineering
. The cells can hold other components: an avatar with a name and an email in the row header, a badge for the status (it has text, so colour is not the only signal) and icon buttons for the actions. Each icon button has an aria-label that names the row (Edit Alex Morgan
); the actions are buttons, not a dropdown, because a menu opened inside a scrolling wrapper would be clipped. Every table sits in a wrapper with overflow-x-auto, so on a narrow screen it scrolls sideways instead of breaking the page, and the wrapper is a focusable region with a name so keyboard users can scroll it. The colours are the default dominant ones: header -200, row dividers -200. Give a table a minimum width (for example min-w-2xl) when you do not want the columns to squash.
| User | Department | Status | Actions |
|---|---|---|---|
|
Alex Morgan
alex.morgan@example.com
|
Engineering | Active |
|
|
Sam Rivera
sam.rivera@example.com
|
Design | Pending |
|
|
Jordan Lee
jordan.lee@example.com
|
Support | Suspended |
|
|
Taylor Kim
taylor.kim@example.com
|
Finance | Invited |
|
<div
id="table-1492-wrapper"
class="isolate overflow-auto rounded-xl border border-dominant-200 dark:border-dominant-700 focus-visible:ring-2 focus-visible:ring-primary-500 focus-visible:outline-none dark:focus-visible:ring-primary-400"
tabindex="0"
role="region"
aria-labelledby="table-1492-caption"
>
<table
id="table-1492"
class="w-full border-separate border-spacing-0 text-left text-sm [&_th]:px-4 [&_td]:px-4 [&_th]:whitespace-nowrap [&_td]:whitespace-nowrap [&_td]:text-dominant-700 dark:[&_td]:text-dominant-200 [&_tbody_th]:font-medium [&_tbody_th]:text-dominant-900 dark:[&_tbody_th]:text-white [&_thead_th]:text-xs [&_thead_th]:font-semibold [&_thead_th]:tracking-wide [&_thead_th]:uppercase [&_thead_tr:last-child>*]:border-b [&_thead_tr:last-child>*]:border-dominant-300 dark:[&_thead_tr:last-child>*]:border-dominant-600 [&_tbody>tr+tr>*]:border-t [&_tbody>tr>*]:border-dominant-200 dark:[&_tbody>tr>*]:border-dominant-700 [&_tfoot>tr>*]:border-t [&_tfoot>tr>*]:border-dominant-300 dark:[&_tfoot>tr>*]:border-dominant-600 [&_tfoot>tr>*]:font-semibold [&_thead_th]:bg-dominant-200 dark:[&_thead_th]:bg-dominant-700 [&_thead_th]:text-dominant-800 dark:[&_thead_th]:text-dominant-100 [&_thead_td]:bg-dominant-100 dark:[&_thead_td]:bg-dominant-800 [&_tfoot>tr>*]:bg-dominant-100 dark:[&_tfoot>tr>*]:bg-dominant-800 [&_tfoot>tr>*]:text-dominant-900 dark:[&_tfoot>tr>*]:text-white [&_.table-sticky-left]:sticky [&_.table-sticky-right]:sticky [&_tbody_.table-sticky-left]:z-10 [&_tbody_.table-sticky-right]:z-10 [&_tbody_.table-sticky-left]:bg-white dark:[&_tbody_.table-sticky-left]:bg-dominant-900 [&_tbody_.table-sticky-right]:bg-white dark:[&_tbody_.table-sticky-right]:bg-dominant-900 [&_thead_th.table-sticky-left]:z-30 [&_thead_th.table-sticky-right]:z-30 [&_thead_td.table-sticky-left]:z-10 [&_thead_td.table-sticky-right]:z-10 [&_th]:py-3 [&_td]:py-3"
>
<caption
id="table-1492-caption"
class="px-4 py-3 text-left text-sm font-semibold text-dominant-900 dark:text-white"
>
Users
<span class="font-normal text-dominant-600 dark:text-dominant-300"
>with their status and actions</span
>
</caption>
<thead>
<tr>
<th scope="col">User</th>
<th scope="col">Department</th>
<th scope="col">Status</th>
<th scope="col">Actions</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">
<div class="flex items-center gap-3">
<span id="avatar-1871-wrapper" class="relative inline-flex shrink-0">
<img
id="avatar-1871"
class="shrink-0 object-cover size-8 rounded-full"
alt
width="32"
height="32"
src="https://ui-avatars.com/api/?name=Alex%20Morgan&background=4338ca&color=ffffff&bold=true&size=128"
aria-hidden="true"
/>
</span>
<div class="min-w-0">
<div class="whitespace-nowrap font-medium text-dominant-900 dark:text-white">
Alex Morgan
</div>
<div class="whitespace-nowrap text-xs text-dominant-600 dark:text-dominant-300">
alex.morgan@example.com
</div>
</div>
</div>
</th>
<td>Engineering</td>
<td>
<span
class="inline-flex items-center gap-1 px-2 py-0.5 whitespace-nowrap text-xs font-semibold text-success-800 dark:text-success-300 bg-success-100 dark:bg-success-900/50 rounded-full"
>
<i aria-hidden="true" class="text-[10px] fa-solid fa-check"> </i>Active</span
>
</td>
<td>
<div class="flex items-center gap-1">
<button
id="button-1926"
type="button"
aria-label="Edit Alex Morgan"
class="cursor-pointer transition-colors inline-flex items-center justify-center rounded-lg font-semibold group peer focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 dark:focus-visible:ring-offset-dominant-950 bg-dominant-100 dark:bg-dominant-800 text-dominant-700 dark:text-dominant-300 not-disabled:hover:bg-dominant-200 dark:not-disabled:hover:bg-dominant-700 not-disabled:active:bg-dominant-300 focus-visible:ring-primary-700 dark:focus-visible:ring-primary-400 size-8 p-0 text-sm"
>
<i aria-hidden="true" class="fa-solid fa-pen"></i>
</button>
<button
id="button-1943"
type="button"
aria-label="Delete Alex Morgan"
class="cursor-pointer transition-colors inline-flex items-center justify-center rounded-lg font-semibold group peer focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 dark:focus-visible:ring-offset-dominant-950 bg-dominant-100 dark:bg-dominant-800 text-dominant-700 dark:text-dominant-300 not-disabled:hover:bg-dominant-200 dark:not-disabled:hover:bg-dominant-700 not-disabled:active:bg-dominant-300 focus-visible:ring-primary-700 dark:focus-visible:ring-primary-400 size-8 p-0 text-sm"
>
<i aria-hidden="true" class="fa-solid fa-trash"></i>
</button>
</div>
</td>
</tr>
<tr>
<th scope="row">
<div class="flex items-center gap-3">
<span id="avatar-1978-wrapper" class="relative inline-flex shrink-0">
<img
id="avatar-1978"
class="shrink-0 object-cover size-8 rounded-full"
alt
width="32"
height="32"
src="https://ui-avatars.com/api/?name=Sam%20Rivera&background=0e7490&color=ffffff&bold=true&size=128"
aria-hidden="true"
/>
</span>
<div class="min-w-0">
<div class="whitespace-nowrap font-medium text-dominant-900 dark:text-white">
Sam Rivera
</div>
<div class="whitespace-nowrap text-xs text-dominant-600 dark:text-dominant-300">
sam.rivera@example.com
</div>
</div>
</div>
</th>
<td>Design</td>
<td>
<span
class="inline-flex items-center gap-1 px-2 py-0.5 whitespace-nowrap text-xs font-semibold text-warning-800 dark:text-warning-300 bg-warning-100 dark:bg-warning-900/50 rounded-full"
>
<i aria-hidden="true" class="text-[10px] fa-solid fa-clock"> </i>Pending</span
>
</td>
<td>
<div class="flex items-center gap-1">
<button
id="button-2008"
type="button"
aria-label="Edit Sam Rivera"
class="cursor-pointer transition-colors inline-flex items-center justify-center rounded-lg font-semibold group peer focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 dark:focus-visible:ring-offset-dominant-950 bg-dominant-100 dark:bg-dominant-800 text-dominant-700 dark:text-dominant-300 not-disabled:hover:bg-dominant-200 dark:not-disabled:hover:bg-dominant-700 not-disabled:active:bg-dominant-300 focus-visible:ring-primary-700 dark:focus-visible:ring-primary-400 size-8 p-0 text-sm"
>
<i aria-hidden="true" class="fa-solid fa-pen"></i>
</button>
<button
id="button-2018"
type="button"
aria-label="Delete Sam Rivera"
class="cursor-pointer transition-colors inline-flex items-center justify-center rounded-lg font-semibold group peer focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 dark:focus-visible:ring-offset-dominant-950 bg-dominant-100 dark:bg-dominant-800 text-dominant-700 dark:text-dominant-300 not-disabled:hover:bg-dominant-200 dark:not-disabled:hover:bg-dominant-700 not-disabled:active:bg-dominant-300 focus-visible:ring-primary-700 dark:focus-visible:ring-primary-400 size-8 p-0 text-sm"
>
<i aria-hidden="true" class="fa-solid fa-trash"></i>
</button>
</div>
</td>
</tr>
<tr>
<th scope="row">
<div class="flex items-center gap-3">
<span id="avatar-2045-wrapper" class="relative inline-flex shrink-0">
<img
id="avatar-2045"
class="shrink-0 object-cover size-8 rounded-full"
alt
width="32"
height="32"
src="https://ui-avatars.com/api/?name=Jordan%20Lee&background=15803d&color=ffffff&bold=true&size=128"
aria-hidden="true"
/>
</span>
<div class="min-w-0">
<div class="whitespace-nowrap font-medium text-dominant-900 dark:text-white">
Jordan Lee
</div>
<div class="whitespace-nowrap text-xs text-dominant-600 dark:text-dominant-300">
jordan.lee@example.com
</div>
</div>
</div>
</th>
<td>Support</td>
<td>
<span
class="inline-flex items-center gap-1 px-2 py-0.5 whitespace-nowrap text-xs font-semibold text-danger-800 dark:text-danger-300 bg-danger-100 dark:bg-danger-900/50 rounded-full"
>
<i aria-hidden="true" class="text-[10px] fa-solid fa-ban"> </i>Suspended</span
>
</td>
<td>
<div class="flex items-center gap-1">
<button
id="button-2074"
type="button"
aria-label="Edit Jordan Lee"
class="cursor-pointer transition-colors inline-flex items-center justify-center rounded-lg font-semibold group peer focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 dark:focus-visible:ring-offset-dominant-950 bg-dominant-100 dark:bg-dominant-800 text-dominant-700 dark:text-dominant-300 not-disabled:hover:bg-dominant-200 dark:not-disabled:hover:bg-dominant-700 not-disabled:active:bg-dominant-300 focus-visible:ring-primary-700 dark:focus-visible:ring-primary-400 size-8 p-0 text-sm"
>
<i aria-hidden="true" class="fa-solid fa-pen"></i>
</button>
<button
id="button-2082"
type="button"
aria-label="Delete Jordan Lee"
class="cursor-pointer transition-colors inline-flex items-center justify-center rounded-lg font-semibold group peer focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 dark:focus-visible:ring-offset-dominant-950 bg-dominant-100 dark:bg-dominant-800 text-dominant-700 dark:text-dominant-300 not-disabled:hover:bg-dominant-200 dark:not-disabled:hover:bg-dominant-700 not-disabled:active:bg-dominant-300 focus-visible:ring-primary-700 dark:focus-visible:ring-primary-400 size-8 p-0 text-sm"
>
<i aria-hidden="true" class="fa-solid fa-trash"></i>
</button>
</div>
</td>
</tr>
<tr>
<th scope="row">
<div class="flex items-center gap-3">
<span id="avatar-2094-wrapper" class="relative inline-flex shrink-0">
<img
id="avatar-2094"
class="shrink-0 object-cover size-8 rounded-full"
alt
width="32"
height="32"
src="https://ui-avatars.com/api/?name=Taylor%20Kim&background=b91c1c&color=ffffff&bold=true&size=128"
aria-hidden="true"
/>
</span>
<div class="min-w-0">
<div class="whitespace-nowrap font-medium text-dominant-900 dark:text-white">
Taylor Kim
</div>
<div class="whitespace-nowrap text-xs text-dominant-600 dark:text-dominant-300">
taylor.kim@example.com
</div>
</div>
</div>
</th>
<td>Finance</td>
<td>
<span
class="inline-flex items-center gap-1 px-2 py-0.5 whitespace-nowrap text-xs font-semibold text-info-800 dark:text-info-300 bg-info-100 dark:bg-info-900/50 rounded-full"
>
<i aria-hidden="true" class="text-[10px] fa-solid fa-envelope"> </i>Invited</span
>
</td>
<td>
<div class="flex items-center gap-1">
<button
id="button-2108"
type="button"
aria-label="Edit Taylor Kim"
class="cursor-pointer transition-colors inline-flex items-center justify-center rounded-lg font-semibold group peer focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 dark:focus-visible:ring-offset-dominant-950 bg-dominant-100 dark:bg-dominant-800 text-dominant-700 dark:text-dominant-300 not-disabled:hover:bg-dominant-200 dark:not-disabled:hover:bg-dominant-700 not-disabled:active:bg-dominant-300 focus-visible:ring-primary-700 dark:focus-visible:ring-primary-400 size-8 p-0 text-sm"
>
<i aria-hidden="true" class="fa-solid fa-pen"></i>
</button>
<button
id="button-2113"
type="button"
aria-label="Delete Taylor Kim"
class="cursor-pointer transition-colors inline-flex items-center justify-center rounded-lg font-semibold group peer focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 dark:focus-visible:ring-offset-dominant-950 bg-dominant-100 dark:bg-dominant-800 text-dominant-700 dark:text-dominant-300 not-disabled:hover:bg-dominant-200 dark:not-disabled:hover:bg-dominant-700 not-disabled:active:bg-dominant-300 focus-visible:ring-primary-700 dark:focus-visible:ring-primary-400 size-8 p-0 text-sm"
>
<i aria-hidden="true" class="fa-solid fa-trash"></i>
</button>
</div>
</td>
</tr>
</tbody>
</table>
</div>
Numbers and footer
Align numbers to the right with text-right and give them tabular-nums so the digits line up; align the column header the same way. A <tfoot> holds totals, and colspan on its row header spans the columns before the figure.
| Invoice | Customer | Date | Amount |
|---|---|---|---|
| INV-1042 | Acme Inc. | Oct 28, 2026 | $1,280.00 |
| INV-1041 | Globex Corporation | Oct 25, 2026 | $340.50 |
| INV-1040 | Initech | Oct 21, 2026 | $2,150.00 |
| INV-1039 | Hooli | Oct 18, 2026 | $89.99 |
| Total | $3,860.49 | ||
<div
id="table-1481-wrapper"
class="isolate overflow-auto rounded-xl border border-dominant-200 dark:border-dominant-700 focus-visible:ring-2 focus-visible:ring-primary-500 focus-visible:outline-none dark:focus-visible:ring-primary-400"
tabindex="0"
>
<table
id="table-1481"
class="w-full border-separate border-spacing-0 text-left text-sm [&_th]:px-4 [&_td]:px-4 [&_th]:whitespace-nowrap [&_td]:whitespace-nowrap [&_td]:text-dominant-700 dark:[&_td]:text-dominant-200 [&_tbody_th]:font-medium [&_tbody_th]:text-dominant-900 dark:[&_tbody_th]:text-white [&_thead_th]:text-xs [&_thead_th]:font-semibold [&_thead_th]:tracking-wide [&_thead_th]:uppercase [&_thead_tr:last-child>*]:border-b [&_thead_tr:last-child>*]:border-dominant-300 dark:[&_thead_tr:last-child>*]:border-dominant-600 [&_tbody>tr+tr>*]:border-t [&_tbody>tr>*]:border-dominant-200 dark:[&_tbody>tr>*]:border-dominant-700 [&_tfoot>tr>*]:border-t [&_tfoot>tr>*]:border-dominant-300 dark:[&_tfoot>tr>*]:border-dominant-600 [&_tfoot>tr>*]:font-semibold [&_thead_th]:bg-dominant-200 dark:[&_thead_th]:bg-dominant-700 [&_thead_th]:text-dominant-800 dark:[&_thead_th]:text-dominant-100 [&_thead_td]:bg-dominant-100 dark:[&_thead_td]:bg-dominant-800 [&_tfoot>tr>*]:bg-dominant-100 dark:[&_tfoot>tr>*]:bg-dominant-800 [&_tfoot>tr>*]:text-dominant-900 dark:[&_tfoot>tr>*]:text-white [&_.table-sticky-left]:sticky [&_.table-sticky-right]:sticky [&_tbody_.table-sticky-left]:z-10 [&_tbody_.table-sticky-right]:z-10 [&_tbody_.table-sticky-left]:bg-white dark:[&_tbody_.table-sticky-left]:bg-dominant-900 [&_tbody_.table-sticky-right]:bg-white dark:[&_tbody_.table-sticky-right]:bg-dominant-900 [&_thead_th.table-sticky-left]:z-30 [&_thead_th.table-sticky-right]:z-30 [&_thead_td.table-sticky-left]:z-10 [&_thead_td.table-sticky-right]:z-10 [&_th]:py-3 [&_td]:py-3"
>
<thead>
<tr>
<th scope="col">Invoice</th>
<th scope="col">Customer</th>
<th scope="col">Date</th>
<th scope="col" class="text-right tabular-nums">Amount</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">INV-1042</th>
<td>Acme Inc.</td>
<td>Oct 28, 2026</td>
<td class="text-right tabular-nums">$1,280.00</td>
</tr>
<tr>
<th scope="row">INV-1041</th>
<td>Globex Corporation</td>
<td>Oct 25, 2026</td>
<td class="text-right tabular-nums">$340.50</td>
</tr>
<tr>
<th scope="row">INV-1040</th>
<td>Initech</td>
<td>Oct 21, 2026</td>
<td class="text-right tabular-nums">$2,150.00</td>
</tr>
<tr>
<th scope="row">INV-1039</th>
<td>Hooli</td>
<td>Oct 18, 2026</td>
<td class="text-right tabular-nums">$89.99</td>
</tr>
</tbody>
<tfoot>
<tr>
<th scope="row" colspan="3">Total</th>
<td class="text-right tabular-nums">$3,860.49</td>
</tr>
</tfoot>
</table>
</div>
Striped
striped alternates the row background (white and dominant-50), lighter than the header and the hover. Use it for wide tables where the eye has to follow a row.
| Name | Department | Last active | |
|---|---|---|---|
| Avery Chen | Engineering | avery.chen@example.com | Today |
| Morgan Reyes | Design | morgan.reyes@example.com | Yesterday |
| Jordan Okafor | Support | jordan.okafor@example.com | 3 days ago |
| Sam Patel | Finance | sam.patel@example.com | Last week |
<div
id="table-1493-wrapper"
class="isolate overflow-auto rounded-xl border border-dominant-200 dark:border-dominant-700 focus-visible:ring-2 focus-visible:ring-primary-500 focus-visible:outline-none dark:focus-visible:ring-primary-400"
tabindex="0"
>
<table
id="table-1493"
class="w-full border-separate border-spacing-0 text-left text-sm [&_th]:px-4 [&_td]:px-4 [&_th]:whitespace-nowrap [&_td]:whitespace-nowrap [&_td]:text-dominant-700 dark:[&_td]:text-dominant-200 [&_tbody_th]:font-medium [&_tbody_th]:text-dominant-900 dark:[&_tbody_th]:text-white [&_thead_th]:text-xs [&_thead_th]:font-semibold [&_thead_th]:tracking-wide [&_thead_th]:uppercase [&_thead_tr:last-child>*]:border-b [&_thead_tr:last-child>*]:border-dominant-300 dark:[&_thead_tr:last-child>*]:border-dominant-600 [&_tbody>tr+tr>*]:border-t [&_tbody>tr>*]:border-dominant-200 dark:[&_tbody>tr>*]:border-dominant-700 [&_tfoot>tr>*]:border-t [&_tfoot>tr>*]:border-dominant-300 dark:[&_tfoot>tr>*]:border-dominant-600 [&_tfoot>tr>*]:font-semibold [&_thead_th]:bg-dominant-200 dark:[&_thead_th]:bg-dominant-700 [&_thead_th]:text-dominant-800 dark:[&_thead_th]:text-dominant-100 [&_thead_td]:bg-dominant-100 dark:[&_thead_td]:bg-dominant-800 [&_tfoot>tr>*]:bg-dominant-100 dark:[&_tfoot>tr>*]:bg-dominant-800 [&_tfoot>tr>*]:text-dominant-900 dark:[&_tfoot>tr>*]:text-white [&_.table-sticky-left]:sticky [&_.table-sticky-right]:sticky [&_tbody_.table-sticky-left]:z-10 [&_tbody_.table-sticky-right]:z-10 [&_tbody_.table-sticky-left]:bg-white dark:[&_tbody_.table-sticky-left]:bg-dominant-900 [&_tbody_.table-sticky-right]:bg-white dark:[&_tbody_.table-sticky-right]:bg-dominant-900 [&_thead_th.table-sticky-left]:z-30 [&_thead_th.table-sticky-right]:z-30 [&_thead_td.table-sticky-left]:z-10 [&_thead_td.table-sticky-right]:z-10 [&_th]:py-3 [&_td]:py-3 [&_tbody>tr:nth-child(even)]:bg-dominant-50 dark:[&_tbody>tr:nth-child(even)]:bg-dominant-800/40 [&_tbody>tr:nth-child(even)>.table-sticky-left]:bg-linear-to-r [&_tbody>tr:nth-child(even)>.table-sticky-right]:bg-linear-to-r [&_tbody>tr:nth-child(even)>.table-sticky-left]:from-dominant-50 dark:[&_tbody>tr:nth-child(even)>.table-sticky-left]:from-dominant-800/40 [&_tbody>tr:nth-child(even)>.table-sticky-right]:from-dominant-50 dark:[&_tbody>tr:nth-child(even)>.table-sticky-right]:from-dominant-800/40 [&_tbody>tr:nth-child(even)>.table-sticky-left]:to-dominant-50 dark:[&_tbody>tr:nth-child(even)>.table-sticky-left]:to-dominant-800/40 [&_tbody>tr:nth-child(even)>.table-sticky-right]:to-dominant-50 dark:[&_tbody>tr:nth-child(even)>.table-sticky-right]:to-dominant-800/40"
>
<thead>
<tr>
<th scope="col">Name</th>
<th scope="col">Department</th>
<th scope="col">Email</th>
<th scope="col">Last active</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">Avery Chen</th>
<td>Engineering</td>
<td>avery.chen@example.com</td>
<td>Today</td>
</tr>
<tr>
<th scope="row">Morgan Reyes</th>
<td>Design</td>
<td>morgan.reyes@example.com</td>
<td>Yesterday</td>
</tr>
<tr>
<th scope="row">Jordan Okafor</th>
<td>Support</td>
<td>jordan.okafor@example.com</td>
<td>3 days ago</td>
</tr>
<tr>
<th scope="row">Sam Patel</th>
<td>Finance</td>
<td>sam.patel@example.com</td>
<td>Last week</td>
</tr>
</tbody>
</table>
</div>
Hover
hover highlights the row under the pointer (dominant-100, dominant-800 in dark mode), one step lighter than the header.
| Name | Department | Last active | |
|---|---|---|---|
| Avery Chen | Engineering | avery.chen@example.com | Today |
| Morgan Reyes | Design | morgan.reyes@example.com | Yesterday |
| Jordan Okafor | Support | jordan.okafor@example.com | 3 days ago |
| Sam Patel | Finance | sam.patel@example.com | Last week |
<div
id="table-1494-wrapper"
class="isolate overflow-auto rounded-xl border border-dominant-200 dark:border-dominant-700 focus-visible:ring-2 focus-visible:ring-primary-500 focus-visible:outline-none dark:focus-visible:ring-primary-400"
tabindex="0"
>
<table
id="table-1494"
class="w-full border-separate border-spacing-0 text-left text-sm [&_th]:px-4 [&_td]:px-4 [&_th]:whitespace-nowrap [&_td]:whitespace-nowrap [&_td]:text-dominant-700 dark:[&_td]:text-dominant-200 [&_tbody_th]:font-medium [&_tbody_th]:text-dominant-900 dark:[&_tbody_th]:text-white [&_thead_th]:text-xs [&_thead_th]:font-semibold [&_thead_th]:tracking-wide [&_thead_th]:uppercase [&_thead_tr:last-child>*]:border-b [&_thead_tr:last-child>*]:border-dominant-300 dark:[&_thead_tr:last-child>*]:border-dominant-600 [&_tbody>tr+tr>*]:border-t [&_tbody>tr>*]:border-dominant-200 dark:[&_tbody>tr>*]:border-dominant-700 [&_tfoot>tr>*]:border-t [&_tfoot>tr>*]:border-dominant-300 dark:[&_tfoot>tr>*]:border-dominant-600 [&_tfoot>tr>*]:font-semibold [&_thead_th]:bg-dominant-200 dark:[&_thead_th]:bg-dominant-700 [&_thead_th]:text-dominant-800 dark:[&_thead_th]:text-dominant-100 [&_thead_td]:bg-dominant-100 dark:[&_thead_td]:bg-dominant-800 [&_tfoot>tr>*]:bg-dominant-100 dark:[&_tfoot>tr>*]:bg-dominant-800 [&_tfoot>tr>*]:text-dominant-900 dark:[&_tfoot>tr>*]:text-white [&_.table-sticky-left]:sticky [&_.table-sticky-right]:sticky [&_tbody_.table-sticky-left]:z-10 [&_tbody_.table-sticky-right]:z-10 [&_tbody_.table-sticky-left]:bg-white dark:[&_tbody_.table-sticky-left]:bg-dominant-900 [&_tbody_.table-sticky-right]:bg-white dark:[&_tbody_.table-sticky-right]:bg-dominant-900 [&_thead_th.table-sticky-left]:z-30 [&_thead_th.table-sticky-right]:z-30 [&_thead_td.table-sticky-left]:z-10 [&_thead_td.table-sticky-right]:z-10 [&_th]:py-3 [&_td]:py-3 [&_tbody>tr:hover]:bg-dominant-100 dark:[&_tbody>tr:hover]:bg-dominant-800 [&_tbody>tr:nth-child(even):hover]:bg-dominant-100 dark:[&_tbody>tr:nth-child(even):hover]:bg-dominant-800 [&_tbody>tr:hover>.table-sticky-left]:bg-linear-to-r [&_tbody>tr:hover>.table-sticky-right]:bg-linear-to-r [&_tbody>tr:hover>.table-sticky-left]:from-dominant-100 dark:[&_tbody>tr:hover>.table-sticky-left]:from-dominant-800 [&_tbody>tr:hover>.table-sticky-right]:from-dominant-100 dark:[&_tbody>tr:hover>.table-sticky-right]:from-dominant-800 [&_tbody>tr:hover>.table-sticky-left]:to-dominant-100 dark:[&_tbody>tr:hover>.table-sticky-left]:to-dominant-800 [&_tbody>tr:hover>.table-sticky-right]:to-dominant-100 dark:[&_tbody>tr:hover>.table-sticky-right]:to-dominant-800 [&_tbody>tr:nth-child(even):hover>.table-sticky-left]:bg-linear-to-r [&_tbody>tr:nth-child(even):hover>.table-sticky-right]:bg-linear-to-r [&_tbody>tr:nth-child(even):hover>.table-sticky-left]:from-dominant-100 dark:[&_tbody>tr:nth-child(even):hover>.table-sticky-left]:from-dominant-800 [&_tbody>tr:nth-child(even):hover>.table-sticky-right]:from-dominant-100 dark:[&_tbody>tr:nth-child(even):hover>.table-sticky-right]:from-dominant-800 [&_tbody>tr:nth-child(even):hover>.table-sticky-left]:to-dominant-100 dark:[&_tbody>tr:nth-child(even):hover>.table-sticky-left]:to-dominant-800 [&_tbody>tr:nth-child(even):hover>.table-sticky-right]:to-dominant-100 dark:[&_tbody>tr:nth-child(even):hover>.table-sticky-right]:to-dominant-800"
>
<thead>
<tr>
<th scope="col">Name</th>
<th scope="col">Department</th>
<th scope="col">Email</th>
<th scope="col">Last active</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">Avery Chen</th>
<td>Engineering</td>
<td>avery.chen@example.com</td>
<td>Today</td>
</tr>
<tr>
<th scope="row">Morgan Reyes</th>
<td>Design</td>
<td>morgan.reyes@example.com</td>
<td>Yesterday</td>
</tr>
<tr>
<th scope="row">Jordan Okafor</th>
<td>Support</td>
<td>jordan.okafor@example.com</td>
<td>3 days ago</td>
</tr>
<tr>
<th scope="row">Sam Patel</th>
<td>Finance</td>
<td>sam.patel@example.com</td>
<td>Last week</td>
</tr>
</tbody>
</table>
</div>
Striped and hover
striped and hover together: the hover colour wins over the stripe on every row.
| Name | Department | Last active | |
|---|---|---|---|
| Avery Chen | Engineering | avery.chen@example.com | Today |
| Morgan Reyes | Design | morgan.reyes@example.com | Yesterday |
| Jordan Okafor | Support | jordan.okafor@example.com | 3 days ago |
| Sam Patel | Finance | sam.patel@example.com | Last week |
<div
id="table-1495-wrapper"
class="isolate overflow-auto rounded-xl border border-dominant-200 dark:border-dominant-700 focus-visible:ring-2 focus-visible:ring-primary-500 focus-visible:outline-none dark:focus-visible:ring-primary-400"
tabindex="0"
>
<table
id="table-1495"
class="w-full border-separate border-spacing-0 text-left text-sm [&_th]:px-4 [&_td]:px-4 [&_th]:whitespace-nowrap [&_td]:whitespace-nowrap [&_td]:text-dominant-700 dark:[&_td]:text-dominant-200 [&_tbody_th]:font-medium [&_tbody_th]:text-dominant-900 dark:[&_tbody_th]:text-white [&_thead_th]:text-xs [&_thead_th]:font-semibold [&_thead_th]:tracking-wide [&_thead_th]:uppercase [&_thead_tr:last-child>*]:border-b [&_thead_tr:last-child>*]:border-dominant-300 dark:[&_thead_tr:last-child>*]:border-dominant-600 [&_tbody>tr+tr>*]:border-t [&_tbody>tr>*]:border-dominant-200 dark:[&_tbody>tr>*]:border-dominant-700 [&_tfoot>tr>*]:border-t [&_tfoot>tr>*]:border-dominant-300 dark:[&_tfoot>tr>*]:border-dominant-600 [&_tfoot>tr>*]:font-semibold [&_thead_th]:bg-dominant-200 dark:[&_thead_th]:bg-dominant-700 [&_thead_th]:text-dominant-800 dark:[&_thead_th]:text-dominant-100 [&_thead_td]:bg-dominant-100 dark:[&_thead_td]:bg-dominant-800 [&_tfoot>tr>*]:bg-dominant-100 dark:[&_tfoot>tr>*]:bg-dominant-800 [&_tfoot>tr>*]:text-dominant-900 dark:[&_tfoot>tr>*]:text-white [&_.table-sticky-left]:sticky [&_.table-sticky-right]:sticky [&_tbody_.table-sticky-left]:z-10 [&_tbody_.table-sticky-right]:z-10 [&_tbody_.table-sticky-left]:bg-white dark:[&_tbody_.table-sticky-left]:bg-dominant-900 [&_tbody_.table-sticky-right]:bg-white dark:[&_tbody_.table-sticky-right]:bg-dominant-900 [&_thead_th.table-sticky-left]:z-30 [&_thead_th.table-sticky-right]:z-30 [&_thead_td.table-sticky-left]:z-10 [&_thead_td.table-sticky-right]:z-10 [&_th]:py-3 [&_td]:py-3 [&_tbody>tr:nth-child(even)]:bg-dominant-50 dark:[&_tbody>tr:nth-child(even)]:bg-dominant-800/40 [&_tbody>tr:nth-child(even)>.table-sticky-left]:bg-linear-to-r [&_tbody>tr:nth-child(even)>.table-sticky-right]:bg-linear-to-r [&_tbody>tr:nth-child(even)>.table-sticky-left]:from-dominant-50 dark:[&_tbody>tr:nth-child(even)>.table-sticky-left]:from-dominant-800/40 [&_tbody>tr:nth-child(even)>.table-sticky-right]:from-dominant-50 dark:[&_tbody>tr:nth-child(even)>.table-sticky-right]:from-dominant-800/40 [&_tbody>tr:nth-child(even)>.table-sticky-left]:to-dominant-50 dark:[&_tbody>tr:nth-child(even)>.table-sticky-left]:to-dominant-800/40 [&_tbody>tr:nth-child(even)>.table-sticky-right]:to-dominant-50 dark:[&_tbody>tr:nth-child(even)>.table-sticky-right]:to-dominant-800/40 [&_tbody>tr:hover]:bg-dominant-100 dark:[&_tbody>tr:hover]:bg-dominant-800 [&_tbody>tr:nth-child(even):hover]:bg-dominant-100 dark:[&_tbody>tr:nth-child(even):hover]:bg-dominant-800 [&_tbody>tr:hover>.table-sticky-left]:bg-linear-to-r [&_tbody>tr:hover>.table-sticky-right]:bg-linear-to-r [&_tbody>tr:hover>.table-sticky-left]:from-dominant-100 dark:[&_tbody>tr:hover>.table-sticky-left]:from-dominant-800 [&_tbody>tr:hover>.table-sticky-right]:from-dominant-100 dark:[&_tbody>tr:hover>.table-sticky-right]:from-dominant-800 [&_tbody>tr:hover>.table-sticky-left]:to-dominant-100 dark:[&_tbody>tr:hover>.table-sticky-left]:to-dominant-800 [&_tbody>tr:hover>.table-sticky-right]:to-dominant-100 dark:[&_tbody>tr:hover>.table-sticky-right]:to-dominant-800 [&_tbody>tr:nth-child(even):hover>.table-sticky-left]:bg-linear-to-r [&_tbody>tr:nth-child(even):hover>.table-sticky-right]:bg-linear-to-r [&_tbody>tr:nth-child(even):hover>.table-sticky-left]:from-dominant-100 dark:[&_tbody>tr:nth-child(even):hover>.table-sticky-left]:from-dominant-800 [&_tbody>tr:nth-child(even):hover>.table-sticky-right]:from-dominant-100 dark:[&_tbody>tr:nth-child(even):hover>.table-sticky-right]:from-dominant-800 [&_tbody>tr:nth-child(even):hover>.table-sticky-left]:to-dominant-100 dark:[&_tbody>tr:nth-child(even):hover>.table-sticky-left]:to-dominant-800 [&_tbody>tr:nth-child(even):hover>.table-sticky-right]:to-dominant-100 dark:[&_tbody>tr:nth-child(even):hover>.table-sticky-right]:to-dominant-800"
>
<thead>
<tr>
<th scope="col">Name</th>
<th scope="col">Department</th>
<th scope="col">Email</th>
<th scope="col">Last active</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">Avery Chen</th>
<td>Engineering</td>
<td>avery.chen@example.com</td>
<td>Today</td>
</tr>
<tr>
<th scope="row">Morgan Reyes</th>
<td>Design</td>
<td>morgan.reyes@example.com</td>
<td>Yesterday</td>
</tr>
<tr>
<th scope="row">Jordan Okafor</th>
<td>Support</td>
<td>jordan.okafor@example.com</td>
<td>3 days ago</td>
</tr>
<tr>
<th scope="row">Sam Patel</th>
<td>Finance</td>
<td>sam.patel@example.com</td>
<td>Last week</td>
</tr>
</tbody>
</table>
</div>
Variants
variant (primary, success, info, warning, danger; dominant by default) colours the header, the stripes, and the hover.
primary
| Name | Department | Last active | |
|---|---|---|---|
| Avery Chen | Engineering | avery.chen@example.com | Today |
| Morgan Reyes | Design | morgan.reyes@example.com | Yesterday |
| Jordan Okafor | Support | jordan.okafor@example.com | 3 days ago |
| Sam Patel | Finance | sam.patel@example.com | Last week |
| Members | 4 | ||
success
| Name | Department | Last active | |
|---|---|---|---|
| Avery Chen | Engineering | avery.chen@example.com | Today |
| Morgan Reyes | Design | morgan.reyes@example.com | Yesterday |
| Jordan Okafor | Support | jordan.okafor@example.com | 3 days ago |
| Sam Patel | Finance | sam.patel@example.com | Last week |
info
| Name | Department | Last active | |
|---|---|---|---|
| Avery Chen | Engineering | avery.chen@example.com | Today |
| Morgan Reyes | Design | morgan.reyes@example.com | Yesterday |
| Jordan Okafor | Support | jordan.okafor@example.com | 3 days ago |
| Sam Patel | Finance | sam.patel@example.com | Last week |
warning
| Name | Department | Last active | |
|---|---|---|---|
| Avery Chen | Engineering | avery.chen@example.com | Today |
| Morgan Reyes | Design | morgan.reyes@example.com | Yesterday |
| Jordan Okafor | Support | jordan.okafor@example.com | 3 days ago |
| Sam Patel | Finance | sam.patel@example.com | Last week |
danger
| Name | Department | Last active | |
|---|---|---|---|
| Avery Chen | Engineering | avery.chen@example.com | Today |
| Morgan Reyes | Design | morgan.reyes@example.com | Yesterday |
| Jordan Okafor | Support | jordan.okafor@example.com | 3 days ago |
| Sam Patel | Finance | sam.patel@example.com | Last week |
<div>
<h3 class="mb-2 text-sm font-semibold text-dominant-900 dark:text-white capitalize">primary</h3>
<div
id="table-1539-wrapper"
class="isolate overflow-auto rounded-xl border border-dominant-200 dark:border-dominant-700 focus-visible:ring-2 focus-visible:ring-primary-500 focus-visible:outline-none dark:focus-visible:ring-primary-400"
tabindex="0"
>
<table
id="table-1539"
class="w-full border-separate border-spacing-0 text-left text-sm [&_th]:px-4 [&_td]:px-4 [&_th]:whitespace-nowrap [&_td]:whitespace-nowrap [&_td]:text-dominant-700 dark:[&_td]:text-dominant-200 [&_tbody_th]:font-medium [&_tbody_th]:text-dominant-900 dark:[&_tbody_th]:text-white [&_thead_th]:text-xs [&_thead_th]:font-semibold [&_thead_th]:tracking-wide [&_thead_th]:uppercase [&_thead_tr:last-child>*]:border-b [&_thead_tr:last-child>*]:border-dominant-300 dark:[&_thead_tr:last-child>*]:border-dominant-600 [&_tbody>tr+tr>*]:border-t [&_tbody>tr>*]:border-dominant-200 dark:[&_tbody>tr>*]:border-dominant-700 [&_tfoot>tr>*]:border-t [&_tfoot>tr>*]:border-dominant-300 dark:[&_tfoot>tr>*]:border-dominant-600 [&_tfoot>tr>*]:font-semibold [&_thead_th]:bg-primary-200 dark:[&_thead_th]:bg-primary-950 [&_thead_th]:text-primary-900 dark:[&_thead_th]:text-primary-100 [&_thead_td]:bg-primary-100 dark:[&_thead_td]:bg-primary-950 [&_tfoot>tr>*]:bg-primary-100 dark:[&_tfoot>tr>*]:bg-primary-950 [&_tfoot>tr>*]:text-primary-900 dark:[&_tfoot>tr>*]:text-primary-100 [&_.table-sticky-left]:sticky [&_.table-sticky-right]:sticky [&_tbody_.table-sticky-left]:z-10 [&_tbody_.table-sticky-right]:z-10 [&_tbody_.table-sticky-left]:bg-white dark:[&_tbody_.table-sticky-left]:bg-dominant-900 [&_tbody_.table-sticky-right]:bg-white dark:[&_tbody_.table-sticky-right]:bg-dominant-900 [&_thead_th.table-sticky-left]:z-30 [&_thead_th.table-sticky-right]:z-30 [&_thead_td.table-sticky-left]:z-10 [&_thead_td.table-sticky-right]:z-10 [&_th]:py-3 [&_td]:py-3 [&_tbody>tr:nth-child(even)]:bg-primary-50 dark:[&_tbody>tr:nth-child(even)]:bg-primary-900/20 [&_tbody>tr:nth-child(even)>.table-sticky-left]:bg-linear-to-r [&_tbody>tr:nth-child(even)>.table-sticky-right]:bg-linear-to-r [&_tbody>tr:nth-child(even)>.table-sticky-left]:from-primary-50 dark:[&_tbody>tr:nth-child(even)>.table-sticky-left]:from-primary-900/20 [&_tbody>tr:nth-child(even)>.table-sticky-right]:from-primary-50 dark:[&_tbody>tr:nth-child(even)>.table-sticky-right]:from-primary-900/20 [&_tbody>tr:nth-child(even)>.table-sticky-left]:to-primary-50 dark:[&_tbody>tr:nth-child(even)>.table-sticky-left]:to-primary-900/20 [&_tbody>tr:nth-child(even)>.table-sticky-right]:to-primary-50 dark:[&_tbody>tr:nth-child(even)>.table-sticky-right]:to-primary-900/20 [&_tbody>tr:hover]:bg-primary-100 dark:[&_tbody>tr:hover]:bg-primary-900/40 [&_tbody>tr:nth-child(even):hover]:bg-primary-100 dark:[&_tbody>tr:nth-child(even):hover]:bg-primary-900/40 [&_tbody>tr:hover>.table-sticky-left]:bg-linear-to-r [&_tbody>tr:hover>.table-sticky-right]:bg-linear-to-r [&_tbody>tr:hover>.table-sticky-left]:from-primary-100 dark:[&_tbody>tr:hover>.table-sticky-left]:from-primary-900/40 [&_tbody>tr:hover>.table-sticky-right]:from-primary-100 dark:[&_tbody>tr:hover>.table-sticky-right]:from-primary-900/40 [&_tbody>tr:hover>.table-sticky-left]:to-primary-100 dark:[&_tbody>tr:hover>.table-sticky-left]:to-primary-900/40 [&_tbody>tr:hover>.table-sticky-right]:to-primary-100 dark:[&_tbody>tr:hover>.table-sticky-right]:to-primary-900/40 [&_tbody>tr:nth-child(even):hover>.table-sticky-left]:bg-linear-to-r [&_tbody>tr:nth-child(even):hover>.table-sticky-right]:bg-linear-to-r [&_tbody>tr:nth-child(even):hover>.table-sticky-left]:from-primary-100 dark:[&_tbody>tr:nth-child(even):hover>.table-sticky-left]:from-primary-900/40 [&_tbody>tr:nth-child(even):hover>.table-sticky-right]:from-primary-100 dark:[&_tbody>tr:nth-child(even):hover>.table-sticky-right]:from-primary-900/40 [&_tbody>tr:nth-child(even):hover>.table-sticky-left]:to-primary-100 dark:[&_tbody>tr:nth-child(even):hover>.table-sticky-left]:to-primary-900/40 [&_tbody>tr:nth-child(even):hover>.table-sticky-right]:to-primary-100 dark:[&_tbody>tr:nth-child(even):hover>.table-sticky-right]:to-primary-900/40"
>
<thead>
<tr>
<th scope="col">Name</th>
<th scope="col">Department</th>
<th scope="col">Email</th>
<th scope="col">Last active</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">Avery Chen</th>
<td>Engineering</td>
<td>avery.chen@example.com</td>
<td>Today</td>
</tr>
<tr>
<th scope="row">Morgan Reyes</th>
<td>Design</td>
<td>morgan.reyes@example.com</td>
<td>Yesterday</td>
</tr>
<tr>
<th scope="row">Jordan Okafor</th>
<td>Support</td>
<td>jordan.okafor@example.com</td>
<td>3 days ago</td>
</tr>
<tr>
<th scope="row">Sam Patel</th>
<td>Finance</td>
<td>sam.patel@example.com</td>
<td>Last week</td>
</tr>
</tbody>
<tfoot
class="[&>tr>*]:bg-primary-200! dark:[&>tr>*]:bg-primary-950! [&>tr>*]:text-primary-900! dark:[&>tr>*]:text-primary-100!"
>
<tr>
<th scope="row" colspan="3">Members</th>
<td>4</td>
</tr>
</tfoot>
</table>
</div>
</div>
<div>
<h3 class="mb-2 text-sm font-semibold text-dominant-900 dark:text-white capitalize">success</h3>
<div
id="table-2073-wrapper"
class="isolate overflow-auto rounded-xl border border-dominant-200 dark:border-dominant-700 focus-visible:ring-2 focus-visible:ring-primary-500 focus-visible:outline-none dark:focus-visible:ring-primary-400"
tabindex="0"
>
<table
id="table-2073"
class="w-full border-separate border-spacing-0 text-left text-sm [&_th]:px-4 [&_td]:px-4 [&_th]:whitespace-nowrap [&_td]:whitespace-nowrap [&_td]:text-dominant-700 dark:[&_td]:text-dominant-200 [&_tbody_th]:font-medium [&_tbody_th]:text-dominant-900 dark:[&_tbody_th]:text-white [&_thead_th]:text-xs [&_thead_th]:font-semibold [&_thead_th]:tracking-wide [&_thead_th]:uppercase [&_thead_tr:last-child>*]:border-b [&_thead_tr:last-child>*]:border-dominant-300 dark:[&_thead_tr:last-child>*]:border-dominant-600 [&_tbody>tr+tr>*]:border-t [&_tbody>tr>*]:border-dominant-200 dark:[&_tbody>tr>*]:border-dominant-700 [&_tfoot>tr>*]:border-t [&_tfoot>tr>*]:border-dominant-300 dark:[&_tfoot>tr>*]:border-dominant-600 [&_tfoot>tr>*]:font-semibold [&_thead_th]:bg-success-200 dark:[&_thead_th]:bg-success-950 [&_thead_th]:text-success-900 dark:[&_thead_th]:text-success-100 [&_thead_td]:bg-success-100 dark:[&_thead_td]:bg-success-950 [&_tfoot>tr>*]:bg-success-100 dark:[&_tfoot>tr>*]:bg-success-950 [&_tfoot>tr>*]:text-success-900 dark:[&_tfoot>tr>*]:text-success-100 [&_.table-sticky-left]:sticky [&_.table-sticky-right]:sticky [&_tbody_.table-sticky-left]:z-10 [&_tbody_.table-sticky-right]:z-10 [&_tbody_.table-sticky-left]:bg-white dark:[&_tbody_.table-sticky-left]:bg-dominant-900 [&_tbody_.table-sticky-right]:bg-white dark:[&_tbody_.table-sticky-right]:bg-dominant-900 [&_thead_th.table-sticky-left]:z-30 [&_thead_th.table-sticky-right]:z-30 [&_thead_td.table-sticky-left]:z-10 [&_thead_td.table-sticky-right]:z-10 [&_th]:py-3 [&_td]:py-3 [&_tbody>tr:nth-child(even)]:bg-success-50 dark:[&_tbody>tr:nth-child(even)]:bg-success-900/20 [&_tbody>tr:nth-child(even)>.table-sticky-left]:bg-linear-to-r [&_tbody>tr:nth-child(even)>.table-sticky-right]:bg-linear-to-r [&_tbody>tr:nth-child(even)>.table-sticky-left]:from-success-50 dark:[&_tbody>tr:nth-child(even)>.table-sticky-left]:from-success-900/20 [&_tbody>tr:nth-child(even)>.table-sticky-right]:from-success-50 dark:[&_tbody>tr:nth-child(even)>.table-sticky-right]:from-success-900/20 [&_tbody>tr:nth-child(even)>.table-sticky-left]:to-success-50 dark:[&_tbody>tr:nth-child(even)>.table-sticky-left]:to-success-900/20 [&_tbody>tr:nth-child(even)>.table-sticky-right]:to-success-50 dark:[&_tbody>tr:nth-child(even)>.table-sticky-right]:to-success-900/20 [&_tbody>tr:hover]:bg-success-100 dark:[&_tbody>tr:hover]:bg-success-900/40 [&_tbody>tr:nth-child(even):hover]:bg-success-100 dark:[&_tbody>tr:nth-child(even):hover]:bg-success-900/40 [&_tbody>tr:hover>.table-sticky-left]:bg-linear-to-r [&_tbody>tr:hover>.table-sticky-right]:bg-linear-to-r [&_tbody>tr:hover>.table-sticky-left]:from-success-100 dark:[&_tbody>tr:hover>.table-sticky-left]:from-success-900/40 [&_tbody>tr:hover>.table-sticky-right]:from-success-100 dark:[&_tbody>tr:hover>.table-sticky-right]:from-success-900/40 [&_tbody>tr:hover>.table-sticky-left]:to-success-100 dark:[&_tbody>tr:hover>.table-sticky-left]:to-success-900/40 [&_tbody>tr:hover>.table-sticky-right]:to-success-100 dark:[&_tbody>tr:hover>.table-sticky-right]:to-success-900/40 [&_tbody>tr:nth-child(even):hover>.table-sticky-left]:bg-linear-to-r [&_tbody>tr:nth-child(even):hover>.table-sticky-right]:bg-linear-to-r [&_tbody>tr:nth-child(even):hover>.table-sticky-left]:from-success-100 dark:[&_tbody>tr:nth-child(even):hover>.table-sticky-left]:from-success-900/40 [&_tbody>tr:nth-child(even):hover>.table-sticky-right]:from-success-100 dark:[&_tbody>tr:nth-child(even):hover>.table-sticky-right]:from-success-900/40 [&_tbody>tr:nth-child(even):hover>.table-sticky-left]:to-success-100 dark:[&_tbody>tr:nth-child(even):hover>.table-sticky-left]:to-success-900/40 [&_tbody>tr:nth-child(even):hover>.table-sticky-right]:to-success-100 dark:[&_tbody>tr:nth-child(even):hover>.table-sticky-right]:to-success-900/40"
>
<thead>
<tr>
<th scope="col">Name</th>
<th scope="col">Department</th>
<th scope="col">Email</th>
<th scope="col">Last active</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">Avery Chen</th>
<td>Engineering</td>
<td>avery.chen@example.com</td>
<td>Today</td>
</tr>
<tr>
<th scope="row">Morgan Reyes</th>
<td>Design</td>
<td>morgan.reyes@example.com</td>
<td>Yesterday</td>
</tr>
<tr>
<th scope="row">Jordan Okafor</th>
<td>Support</td>
<td>jordan.okafor@example.com</td>
<td>3 days ago</td>
</tr>
<tr>
<th scope="row">Sam Patel</th>
<td>Finance</td>
<td>sam.patel@example.com</td>
<td>Last week</td>
</tr>
</tbody>
</table>
</div>
</div>
<div>
<h3 class="mb-2 text-sm font-semibold text-dominant-900 dark:text-white capitalize">info</h3>
<div
id="table-2167-wrapper"
class="isolate overflow-auto rounded-xl border border-dominant-200 dark:border-dominant-700 focus-visible:ring-2 focus-visible:ring-primary-500 focus-visible:outline-none dark:focus-visible:ring-primary-400"
tabindex="0"
>
<table
id="table-2167"
class="w-full border-separate border-spacing-0 text-left text-sm [&_th]:px-4 [&_td]:px-4 [&_th]:whitespace-nowrap [&_td]:whitespace-nowrap [&_td]:text-dominant-700 dark:[&_td]:text-dominant-200 [&_tbody_th]:font-medium [&_tbody_th]:text-dominant-900 dark:[&_tbody_th]:text-white [&_thead_th]:text-xs [&_thead_th]:font-semibold [&_thead_th]:tracking-wide [&_thead_th]:uppercase [&_thead_tr:last-child>*]:border-b [&_thead_tr:last-child>*]:border-dominant-300 dark:[&_thead_tr:last-child>*]:border-dominant-600 [&_tbody>tr+tr>*]:border-t [&_tbody>tr>*]:border-dominant-200 dark:[&_tbody>tr>*]:border-dominant-700 [&_tfoot>tr>*]:border-t [&_tfoot>tr>*]:border-dominant-300 dark:[&_tfoot>tr>*]:border-dominant-600 [&_tfoot>tr>*]:font-semibold [&_thead_th]:bg-info-200 dark:[&_thead_th]:bg-info-950 [&_thead_th]:text-info-900 dark:[&_thead_th]:text-info-100 [&_thead_td]:bg-info-100 dark:[&_thead_td]:bg-info-950 [&_tfoot>tr>*]:bg-info-100 dark:[&_tfoot>tr>*]:bg-info-950 [&_tfoot>tr>*]:text-info-900 dark:[&_tfoot>tr>*]:text-info-100 [&_.table-sticky-left]:sticky [&_.table-sticky-right]:sticky [&_tbody_.table-sticky-left]:z-10 [&_tbody_.table-sticky-right]:z-10 [&_tbody_.table-sticky-left]:bg-white dark:[&_tbody_.table-sticky-left]:bg-dominant-900 [&_tbody_.table-sticky-right]:bg-white dark:[&_tbody_.table-sticky-right]:bg-dominant-900 [&_thead_th.table-sticky-left]:z-30 [&_thead_th.table-sticky-right]:z-30 [&_thead_td.table-sticky-left]:z-10 [&_thead_td.table-sticky-right]:z-10 [&_th]:py-3 [&_td]:py-3 [&_tbody>tr:nth-child(even)]:bg-info-50 dark:[&_tbody>tr:nth-child(even)]:bg-info-900/20 [&_tbody>tr:nth-child(even)>.table-sticky-left]:bg-linear-to-r [&_tbody>tr:nth-child(even)>.table-sticky-right]:bg-linear-to-r [&_tbody>tr:nth-child(even)>.table-sticky-left]:from-info-50 dark:[&_tbody>tr:nth-child(even)>.table-sticky-left]:from-info-900/20 [&_tbody>tr:nth-child(even)>.table-sticky-right]:from-info-50 dark:[&_tbody>tr:nth-child(even)>.table-sticky-right]:from-info-900/20 [&_tbody>tr:nth-child(even)>.table-sticky-left]:to-info-50 dark:[&_tbody>tr:nth-child(even)>.table-sticky-left]:to-info-900/20 [&_tbody>tr:nth-child(even)>.table-sticky-right]:to-info-50 dark:[&_tbody>tr:nth-child(even)>.table-sticky-right]:to-info-900/20 [&_tbody>tr:hover]:bg-info-100 dark:[&_tbody>tr:hover]:bg-info-900/40 [&_tbody>tr:nth-child(even):hover]:bg-info-100 dark:[&_tbody>tr:nth-child(even):hover]:bg-info-900/40 [&_tbody>tr:hover>.table-sticky-left]:bg-linear-to-r [&_tbody>tr:hover>.table-sticky-right]:bg-linear-to-r [&_tbody>tr:hover>.table-sticky-left]:from-info-100 dark:[&_tbody>tr:hover>.table-sticky-left]:from-info-900/40 [&_tbody>tr:hover>.table-sticky-right]:from-info-100 dark:[&_tbody>tr:hover>.table-sticky-right]:from-info-900/40 [&_tbody>tr:hover>.table-sticky-left]:to-info-100 dark:[&_tbody>tr:hover>.table-sticky-left]:to-info-900/40 [&_tbody>tr:hover>.table-sticky-right]:to-info-100 dark:[&_tbody>tr:hover>.table-sticky-right]:to-info-900/40 [&_tbody>tr:nth-child(even):hover>.table-sticky-left]:bg-linear-to-r [&_tbody>tr:nth-child(even):hover>.table-sticky-right]:bg-linear-to-r [&_tbody>tr:nth-child(even):hover>.table-sticky-left]:from-info-100 dark:[&_tbody>tr:nth-child(even):hover>.table-sticky-left]:from-info-900/40 [&_tbody>tr:nth-child(even):hover>.table-sticky-right]:from-info-100 dark:[&_tbody>tr:nth-child(even):hover>.table-sticky-right]:from-info-900/40 [&_tbody>tr:nth-child(even):hover>.table-sticky-left]:to-info-100 dark:[&_tbody>tr:nth-child(even):hover>.table-sticky-left]:to-info-900/40 [&_tbody>tr:nth-child(even):hover>.table-sticky-right]:to-info-100 dark:[&_tbody>tr:nth-child(even):hover>.table-sticky-right]:to-info-900/40"
>
<thead>
<tr>
<th scope="col">Name</th>
<th scope="col">Department</th>
<th scope="col">Email</th>
<th scope="col">Last active</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">Avery Chen</th>
<td>Engineering</td>
<td>avery.chen@example.com</td>
<td>Today</td>
</tr>
<tr>
<th scope="row">Morgan Reyes</th>
<td>Design</td>
<td>morgan.reyes@example.com</td>
<td>Yesterday</td>
</tr>
<tr>
<th scope="row">Jordan Okafor</th>
<td>Support</td>
<td>jordan.okafor@example.com</td>
<td>3 days ago</td>
</tr>
<tr>
<th scope="row">Sam Patel</th>
<td>Finance</td>
<td>sam.patel@example.com</td>
<td>Last week</td>
</tr>
</tbody>
</table>
</div>
</div>
<div>
<h3 class="mb-2 text-sm font-semibold text-dominant-900 dark:text-white capitalize">warning</h3>
<div
id="table-2202-wrapper"
class="isolate overflow-auto rounded-xl border border-dominant-200 dark:border-dominant-700 focus-visible:ring-2 focus-visible:ring-primary-500 focus-visible:outline-none dark:focus-visible:ring-primary-400"
tabindex="0"
>
<table
id="table-2202"
class="w-full border-separate border-spacing-0 text-left text-sm [&_th]:px-4 [&_td]:px-4 [&_th]:whitespace-nowrap [&_td]:whitespace-nowrap [&_td]:text-dominant-700 dark:[&_td]:text-dominant-200 [&_tbody_th]:font-medium [&_tbody_th]:text-dominant-900 dark:[&_tbody_th]:text-white [&_thead_th]:text-xs [&_thead_th]:font-semibold [&_thead_th]:tracking-wide [&_thead_th]:uppercase [&_thead_tr:last-child>*]:border-b [&_thead_tr:last-child>*]:border-dominant-300 dark:[&_thead_tr:last-child>*]:border-dominant-600 [&_tbody>tr+tr>*]:border-t [&_tbody>tr>*]:border-dominant-200 dark:[&_tbody>tr>*]:border-dominant-700 [&_tfoot>tr>*]:border-t [&_tfoot>tr>*]:border-dominant-300 dark:[&_tfoot>tr>*]:border-dominant-600 [&_tfoot>tr>*]:font-semibold [&_thead_th]:bg-warning-200 dark:[&_thead_th]:bg-warning-950 [&_thead_th]:text-warning-900 dark:[&_thead_th]:text-warning-100 [&_thead_td]:bg-warning-100 dark:[&_thead_td]:bg-warning-950 [&_tfoot>tr>*]:bg-warning-100 dark:[&_tfoot>tr>*]:bg-warning-950 [&_tfoot>tr>*]:text-warning-900 dark:[&_tfoot>tr>*]:text-warning-100 [&_.table-sticky-left]:sticky [&_.table-sticky-right]:sticky [&_tbody_.table-sticky-left]:z-10 [&_tbody_.table-sticky-right]:z-10 [&_tbody_.table-sticky-left]:bg-white dark:[&_tbody_.table-sticky-left]:bg-dominant-900 [&_tbody_.table-sticky-right]:bg-white dark:[&_tbody_.table-sticky-right]:bg-dominant-900 [&_thead_th.table-sticky-left]:z-30 [&_thead_th.table-sticky-right]:z-30 [&_thead_td.table-sticky-left]:z-10 [&_thead_td.table-sticky-right]:z-10 [&_th]:py-3 [&_td]:py-3 [&_tbody>tr:nth-child(even)]:bg-warning-50 dark:[&_tbody>tr:nth-child(even)]:bg-warning-900/20 [&_tbody>tr:nth-child(even)>.table-sticky-left]:bg-linear-to-r [&_tbody>tr:nth-child(even)>.table-sticky-right]:bg-linear-to-r [&_tbody>tr:nth-child(even)>.table-sticky-left]:from-warning-50 dark:[&_tbody>tr:nth-child(even)>.table-sticky-left]:from-warning-900/20 [&_tbody>tr:nth-child(even)>.table-sticky-right]:from-warning-50 dark:[&_tbody>tr:nth-child(even)>.table-sticky-right]:from-warning-900/20 [&_tbody>tr:nth-child(even)>.table-sticky-left]:to-warning-50 dark:[&_tbody>tr:nth-child(even)>.table-sticky-left]:to-warning-900/20 [&_tbody>tr:nth-child(even)>.table-sticky-right]:to-warning-50 dark:[&_tbody>tr:nth-child(even)>.table-sticky-right]:to-warning-900/20 [&_tbody>tr:hover]:bg-warning-100 dark:[&_tbody>tr:hover]:bg-warning-900/40 [&_tbody>tr:nth-child(even):hover]:bg-warning-100 dark:[&_tbody>tr:nth-child(even):hover]:bg-warning-900/40 [&_tbody>tr:hover>.table-sticky-left]:bg-linear-to-r [&_tbody>tr:hover>.table-sticky-right]:bg-linear-to-r [&_tbody>tr:hover>.table-sticky-left]:from-warning-100 dark:[&_tbody>tr:hover>.table-sticky-left]:from-warning-900/40 [&_tbody>tr:hover>.table-sticky-right]:from-warning-100 dark:[&_tbody>tr:hover>.table-sticky-right]:from-warning-900/40 [&_tbody>tr:hover>.table-sticky-left]:to-warning-100 dark:[&_tbody>tr:hover>.table-sticky-left]:to-warning-900/40 [&_tbody>tr:hover>.table-sticky-right]:to-warning-100 dark:[&_tbody>tr:hover>.table-sticky-right]:to-warning-900/40 [&_tbody>tr:nth-child(even):hover>.table-sticky-left]:bg-linear-to-r [&_tbody>tr:nth-child(even):hover>.table-sticky-right]:bg-linear-to-r [&_tbody>tr:nth-child(even):hover>.table-sticky-left]:from-warning-100 dark:[&_tbody>tr:nth-child(even):hover>.table-sticky-left]:from-warning-900/40 [&_tbody>tr:nth-child(even):hover>.table-sticky-right]:from-warning-100 dark:[&_tbody>tr:nth-child(even):hover>.table-sticky-right]:from-warning-900/40 [&_tbody>tr:nth-child(even):hover>.table-sticky-left]:to-warning-100 dark:[&_tbody>tr:nth-child(even):hover>.table-sticky-left]:to-warning-900/40 [&_tbody>tr:nth-child(even):hover>.table-sticky-right]:to-warning-100 dark:[&_tbody>tr:nth-child(even):hover>.table-sticky-right]:to-warning-900/40"
>
<thead>
<tr>
<th scope="col">Name</th>
<th scope="col">Department</th>
<th scope="col">Email</th>
<th scope="col">Last active</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">Avery Chen</th>
<td>Engineering</td>
<td>avery.chen@example.com</td>
<td>Today</td>
</tr>
<tr>
<th scope="row">Morgan Reyes</th>
<td>Design</td>
<td>morgan.reyes@example.com</td>
<td>Yesterday</td>
</tr>
<tr>
<th scope="row">Jordan Okafor</th>
<td>Support</td>
<td>jordan.okafor@example.com</td>
<td>3 days ago</td>
</tr>
<tr>
<th scope="row">Sam Patel</th>
<td>Finance</td>
<td>sam.patel@example.com</td>
<td>Last week</td>
</tr>
</tbody>
</table>
</div>
</div>
<div>
<h3 class="mb-2 text-sm font-semibold text-dominant-900 dark:text-white capitalize">danger</h3>
<div
id="table-2220-wrapper"
class="isolate overflow-auto rounded-xl border border-dominant-200 dark:border-dominant-700 focus-visible:ring-2 focus-visible:ring-primary-500 focus-visible:outline-none dark:focus-visible:ring-primary-400"
tabindex="0"
>
<table
id="table-2220"
class="w-full border-separate border-spacing-0 text-left text-sm [&_th]:px-4 [&_td]:px-4 [&_th]:whitespace-nowrap [&_td]:whitespace-nowrap [&_td]:text-dominant-700 dark:[&_td]:text-dominant-200 [&_tbody_th]:font-medium [&_tbody_th]:text-dominant-900 dark:[&_tbody_th]:text-white [&_thead_th]:text-xs [&_thead_th]:font-semibold [&_thead_th]:tracking-wide [&_thead_th]:uppercase [&_thead_tr:last-child>*]:border-b [&_thead_tr:last-child>*]:border-dominant-300 dark:[&_thead_tr:last-child>*]:border-dominant-600 [&_tbody>tr+tr>*]:border-t [&_tbody>tr>*]:border-dominant-200 dark:[&_tbody>tr>*]:border-dominant-700 [&_tfoot>tr>*]:border-t [&_tfoot>tr>*]:border-dominant-300 dark:[&_tfoot>tr>*]:border-dominant-600 [&_tfoot>tr>*]:font-semibold [&_thead_th]:bg-danger-200 dark:[&_thead_th]:bg-danger-950 [&_thead_th]:text-danger-900 dark:[&_thead_th]:text-danger-100 [&_thead_td]:bg-danger-100 dark:[&_thead_td]:bg-danger-950 [&_tfoot>tr>*]:bg-danger-100 dark:[&_tfoot>tr>*]:bg-danger-950 [&_tfoot>tr>*]:text-danger-900 dark:[&_tfoot>tr>*]:text-danger-100 [&_.table-sticky-left]:sticky [&_.table-sticky-right]:sticky [&_tbody_.table-sticky-left]:z-10 [&_tbody_.table-sticky-right]:z-10 [&_tbody_.table-sticky-left]:bg-white dark:[&_tbody_.table-sticky-left]:bg-dominant-900 [&_tbody_.table-sticky-right]:bg-white dark:[&_tbody_.table-sticky-right]:bg-dominant-900 [&_thead_th.table-sticky-left]:z-30 [&_thead_th.table-sticky-right]:z-30 [&_thead_td.table-sticky-left]:z-10 [&_thead_td.table-sticky-right]:z-10 [&_th]:py-3 [&_td]:py-3 [&_tbody>tr:nth-child(even)]:bg-danger-50 dark:[&_tbody>tr:nth-child(even)]:bg-danger-900/20 [&_tbody>tr:nth-child(even)>.table-sticky-left]:bg-linear-to-r [&_tbody>tr:nth-child(even)>.table-sticky-right]:bg-linear-to-r [&_tbody>tr:nth-child(even)>.table-sticky-left]:from-danger-50 dark:[&_tbody>tr:nth-child(even)>.table-sticky-left]:from-danger-900/20 [&_tbody>tr:nth-child(even)>.table-sticky-right]:from-danger-50 dark:[&_tbody>tr:nth-child(even)>.table-sticky-right]:from-danger-900/20 [&_tbody>tr:nth-child(even)>.table-sticky-left]:to-danger-50 dark:[&_tbody>tr:nth-child(even)>.table-sticky-left]:to-danger-900/20 [&_tbody>tr:nth-child(even)>.table-sticky-right]:to-danger-50 dark:[&_tbody>tr:nth-child(even)>.table-sticky-right]:to-danger-900/20 [&_tbody>tr:hover]:bg-danger-100 dark:[&_tbody>tr:hover]:bg-danger-900/40 [&_tbody>tr:nth-child(even):hover]:bg-danger-100 dark:[&_tbody>tr:nth-child(even):hover]:bg-danger-900/40 [&_tbody>tr:hover>.table-sticky-left]:bg-linear-to-r [&_tbody>tr:hover>.table-sticky-right]:bg-linear-to-r [&_tbody>tr:hover>.table-sticky-left]:from-danger-100 dark:[&_tbody>tr:hover>.table-sticky-left]:from-danger-900/40 [&_tbody>tr:hover>.table-sticky-right]:from-danger-100 dark:[&_tbody>tr:hover>.table-sticky-right]:from-danger-900/40 [&_tbody>tr:hover>.table-sticky-left]:to-danger-100 dark:[&_tbody>tr:hover>.table-sticky-left]:to-danger-900/40 [&_tbody>tr:hover>.table-sticky-right]:to-danger-100 dark:[&_tbody>tr:hover>.table-sticky-right]:to-danger-900/40 [&_tbody>tr:nth-child(even):hover>.table-sticky-left]:bg-linear-to-r [&_tbody>tr:nth-child(even):hover>.table-sticky-right]:bg-linear-to-r [&_tbody>tr:nth-child(even):hover>.table-sticky-left]:from-danger-100 dark:[&_tbody>tr:nth-child(even):hover>.table-sticky-left]:from-danger-900/40 [&_tbody>tr:nth-child(even):hover>.table-sticky-right]:from-danger-100 dark:[&_tbody>tr:nth-child(even):hover>.table-sticky-right]:from-danger-900/40 [&_tbody>tr:nth-child(even):hover>.table-sticky-left]:to-danger-100 dark:[&_tbody>tr:nth-child(even):hover>.table-sticky-left]:to-danger-900/40 [&_tbody>tr:nth-child(even):hover>.table-sticky-right]:to-danger-100 dark:[&_tbody>tr:nth-child(even):hover>.table-sticky-right]:to-danger-900/40"
>
<thead>
<tr>
<th scope="col">Name</th>
<th scope="col">Department</th>
<th scope="col">Email</th>
<th scope="col">Last active</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">Avery Chen</th>
<td>Engineering</td>
<td>avery.chen@example.com</td>
<td>Today</td>
</tr>
<tr>
<th scope="row">Morgan Reyes</th>
<td>Design</td>
<td>morgan.reyes@example.com</td>
<td>Yesterday</td>
</tr>
<tr>
<th scope="row">Jordan Okafor</th>
<td>Support</td>
<td>jordan.okafor@example.com</td>
<td>3 days ago</td>
</tr>
<tr>
<th scope="row">Sam Patel</th>
<td>Finance</td>
<td>sam.patel@example.com</td>
<td>Last week</td>
</tr>
</tbody>
</table>
</div>
</div>
Appearance
How the header is painted, separate from the variant: tinted (the default) or appearance="outline" on the header, which leaves it on the surface with a heavier line below.
subtle
| Name | Department | Last active | |
|---|---|---|---|
| Avery Chen | Engineering | avery.chen@example.com | Today |
| Morgan Reyes | Design | morgan.reyes@example.com | Yesterday |
| Jordan Okafor | Support | jordan.okafor@example.com | 3 days ago |
| Sam Patel | Finance | sam.patel@example.com | Last week |
outline
| Name | Department | Last active | |
|---|---|---|---|
| Avery Chen | Engineering | avery.chen@example.com | Today |
| Morgan Reyes | Design | morgan.reyes@example.com | Yesterday |
| Jordan Okafor | Support | jordan.okafor@example.com | 3 days ago |
| Sam Patel | Finance | sam.patel@example.com | Last week |
<div>
<h3 class="mb-2 text-sm font-semibold text-dominant-900 dark:text-white capitalize">subtle</h3>
<div
id="table-1540-wrapper"
class="isolate overflow-auto rounded-xl border border-dominant-200 dark:border-dominant-700 focus-visible:ring-2 focus-visible:ring-primary-500 focus-visible:outline-none dark:focus-visible:ring-primary-400"
tabindex="0"
>
<table
id="table-1540"
class="w-full border-separate border-spacing-0 text-left text-sm [&_th]:px-4 [&_td]:px-4 [&_th]:whitespace-nowrap [&_td]:whitespace-nowrap [&_td]:text-dominant-700 dark:[&_td]:text-dominant-200 [&_tbody_th]:font-medium [&_tbody_th]:text-dominant-900 dark:[&_tbody_th]:text-white [&_thead_th]:text-xs [&_thead_th]:font-semibold [&_thead_th]:tracking-wide [&_thead_th]:uppercase [&_thead_tr:last-child>*]:border-b [&_thead_tr:last-child>*]:border-dominant-300 dark:[&_thead_tr:last-child>*]:border-dominant-600 [&_tbody>tr+tr>*]:border-t [&_tbody>tr>*]:border-dominant-200 dark:[&_tbody>tr>*]:border-dominant-700 [&_tfoot>tr>*]:border-t [&_tfoot>tr>*]:border-dominant-300 dark:[&_tfoot>tr>*]:border-dominant-600 [&_tfoot>tr>*]:font-semibold [&_thead_th]:bg-dominant-200 dark:[&_thead_th]:bg-dominant-700 [&_thead_th]:text-dominant-800 dark:[&_thead_th]:text-dominant-100 [&_thead_td]:bg-dominant-100 dark:[&_thead_td]:bg-dominant-800 [&_tfoot>tr>*]:bg-dominant-100 dark:[&_tfoot>tr>*]:bg-dominant-800 [&_tfoot>tr>*]:text-dominant-900 dark:[&_tfoot>tr>*]:text-white [&_.table-sticky-left]:sticky [&_.table-sticky-right]:sticky [&_tbody_.table-sticky-left]:z-10 [&_tbody_.table-sticky-right]:z-10 [&_tbody_.table-sticky-left]:bg-white dark:[&_tbody_.table-sticky-left]:bg-dominant-900 [&_tbody_.table-sticky-right]:bg-white dark:[&_tbody_.table-sticky-right]:bg-dominant-900 [&_thead_th.table-sticky-left]:z-30 [&_thead_th.table-sticky-right]:z-30 [&_thead_td.table-sticky-left]:z-10 [&_thead_td.table-sticky-right]:z-10 [&_th]:py-3 [&_td]:py-3 [&_tbody>tr:nth-child(even)]:bg-dominant-50 dark:[&_tbody>tr:nth-child(even)]:bg-dominant-800/40 [&_tbody>tr:nth-child(even)>.table-sticky-left]:bg-linear-to-r [&_tbody>tr:nth-child(even)>.table-sticky-right]:bg-linear-to-r [&_tbody>tr:nth-child(even)>.table-sticky-left]:from-dominant-50 dark:[&_tbody>tr:nth-child(even)>.table-sticky-left]:from-dominant-800/40 [&_tbody>tr:nth-child(even)>.table-sticky-right]:from-dominant-50 dark:[&_tbody>tr:nth-child(even)>.table-sticky-right]:from-dominant-800/40 [&_tbody>tr:nth-child(even)>.table-sticky-left]:to-dominant-50 dark:[&_tbody>tr:nth-child(even)>.table-sticky-left]:to-dominant-800/40 [&_tbody>tr:nth-child(even)>.table-sticky-right]:to-dominant-50 dark:[&_tbody>tr:nth-child(even)>.table-sticky-right]:to-dominant-800/40 [&_tbody>tr:hover]:bg-dominant-100 dark:[&_tbody>tr:hover]:bg-dominant-800 [&_tbody>tr:nth-child(even):hover]:bg-dominant-100 dark:[&_tbody>tr:nth-child(even):hover]:bg-dominant-800 [&_tbody>tr:hover>.table-sticky-left]:bg-linear-to-r [&_tbody>tr:hover>.table-sticky-right]:bg-linear-to-r [&_tbody>tr:hover>.table-sticky-left]:from-dominant-100 dark:[&_tbody>tr:hover>.table-sticky-left]:from-dominant-800 [&_tbody>tr:hover>.table-sticky-right]:from-dominant-100 dark:[&_tbody>tr:hover>.table-sticky-right]:from-dominant-800 [&_tbody>tr:hover>.table-sticky-left]:to-dominant-100 dark:[&_tbody>tr:hover>.table-sticky-left]:to-dominant-800 [&_tbody>tr:hover>.table-sticky-right]:to-dominant-100 dark:[&_tbody>tr:hover>.table-sticky-right]:to-dominant-800 [&_tbody>tr:nth-child(even):hover>.table-sticky-left]:bg-linear-to-r [&_tbody>tr:nth-child(even):hover>.table-sticky-right]:bg-linear-to-r [&_tbody>tr:nth-child(even):hover>.table-sticky-left]:from-dominant-100 dark:[&_tbody>tr:nth-child(even):hover>.table-sticky-left]:from-dominant-800 [&_tbody>tr:nth-child(even):hover>.table-sticky-right]:from-dominant-100 dark:[&_tbody>tr:nth-child(even):hover>.table-sticky-right]:from-dominant-800 [&_tbody>tr:nth-child(even):hover>.table-sticky-left]:to-dominant-100 dark:[&_tbody>tr:nth-child(even):hover>.table-sticky-left]:to-dominant-800 [&_tbody>tr:nth-child(even):hover>.table-sticky-right]:to-dominant-100 dark:[&_tbody>tr:nth-child(even):hover>.table-sticky-right]:to-dominant-800"
>
<thead>
<tr>
<th scope="col">Name</th>
<th scope="col">Department</th>
<th scope="col">Email</th>
<th scope="col">Last active</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">Avery Chen</th>
<td>Engineering</td>
<td>avery.chen@example.com</td>
<td>Today</td>
</tr>
<tr>
<th scope="row">Morgan Reyes</th>
<td>Design</td>
<td>morgan.reyes@example.com</td>
<td>Yesterday</td>
</tr>
<tr>
<th scope="row">Jordan Okafor</th>
<td>Support</td>
<td>jordan.okafor@example.com</td>
<td>3 days ago</td>
</tr>
<tr>
<th scope="row">Sam Patel</th>
<td>Finance</td>
<td>sam.patel@example.com</td>
<td>Last week</td>
</tr>
</tbody>
</table>
</div>
</div>
<div>
<h3 class="mb-2 text-sm font-semibold text-dominant-900 dark:text-white capitalize">outline</h3>
<div
id="table-2046-wrapper"
class="isolate overflow-auto rounded-xl border border-dominant-200 dark:border-dominant-700 focus-visible:ring-2 focus-visible:ring-primary-500 focus-visible:outline-none dark:focus-visible:ring-primary-400"
tabindex="0"
>
<table
id="table-2046"
class="w-full border-separate border-spacing-0 text-left text-sm [&_th]:px-4 [&_td]:px-4 [&_th]:whitespace-nowrap [&_td]:whitespace-nowrap [&_td]:text-dominant-700 dark:[&_td]:text-dominant-200 [&_tbody_th]:font-medium [&_tbody_th]:text-dominant-900 dark:[&_tbody_th]:text-white [&_thead_th]:text-xs [&_thead_th]:font-semibold [&_thead_th]:tracking-wide [&_thead_th]:uppercase [&_thead_tr:last-child>*]:border-b [&_thead_tr:last-child>*]:border-dominant-300 dark:[&_thead_tr:last-child>*]:border-dominant-600 [&_tbody>tr+tr>*]:border-t [&_tbody>tr>*]:border-dominant-200 dark:[&_tbody>tr>*]:border-dominant-700 [&_tfoot>tr>*]:border-t [&_tfoot>tr>*]:border-dominant-300 dark:[&_tfoot>tr>*]:border-dominant-600 [&_tfoot>tr>*]:font-semibold [&_thead_th]:bg-dominant-200 dark:[&_thead_th]:bg-dominant-700 [&_thead_th]:text-dominant-800 dark:[&_thead_th]:text-dominant-100 [&_thead_td]:bg-dominant-100 dark:[&_thead_td]:bg-dominant-800 [&_tfoot>tr>*]:bg-dominant-100 dark:[&_tfoot>tr>*]:bg-dominant-800 [&_tfoot>tr>*]:text-dominant-900 dark:[&_tfoot>tr>*]:text-white [&_.table-sticky-left]:sticky [&_.table-sticky-right]:sticky [&_tbody_.table-sticky-left]:z-10 [&_tbody_.table-sticky-right]:z-10 [&_tbody_.table-sticky-left]:bg-white dark:[&_tbody_.table-sticky-left]:bg-dominant-900 [&_tbody_.table-sticky-right]:bg-white dark:[&_tbody_.table-sticky-right]:bg-dominant-900 [&_thead_th.table-sticky-left]:z-30 [&_thead_th.table-sticky-right]:z-30 [&_thead_td.table-sticky-left]:z-10 [&_thead_td.table-sticky-right]:z-10 [&_th]:py-3 [&_td]:py-3 [&_tbody>tr:nth-child(even)]:bg-dominant-50 dark:[&_tbody>tr:nth-child(even)]:bg-dominant-800/40 [&_tbody>tr:nth-child(even)>.table-sticky-left]:bg-linear-to-r [&_tbody>tr:nth-child(even)>.table-sticky-right]:bg-linear-to-r [&_tbody>tr:nth-child(even)>.table-sticky-left]:from-dominant-50 dark:[&_tbody>tr:nth-child(even)>.table-sticky-left]:from-dominant-800/40 [&_tbody>tr:nth-child(even)>.table-sticky-right]:from-dominant-50 dark:[&_tbody>tr:nth-child(even)>.table-sticky-right]:from-dominant-800/40 [&_tbody>tr:nth-child(even)>.table-sticky-left]:to-dominant-50 dark:[&_tbody>tr:nth-child(even)>.table-sticky-left]:to-dominant-800/40 [&_tbody>tr:nth-child(even)>.table-sticky-right]:to-dominant-50 dark:[&_tbody>tr:nth-child(even)>.table-sticky-right]:to-dominant-800/40 [&_tbody>tr:hover]:bg-dominant-100 dark:[&_tbody>tr:hover]:bg-dominant-800 [&_tbody>tr:nth-child(even):hover]:bg-dominant-100 dark:[&_tbody>tr:nth-child(even):hover]:bg-dominant-800 [&_tbody>tr:hover>.table-sticky-left]:bg-linear-to-r [&_tbody>tr:hover>.table-sticky-right]:bg-linear-to-r [&_tbody>tr:hover>.table-sticky-left]:from-dominant-100 dark:[&_tbody>tr:hover>.table-sticky-left]:from-dominant-800 [&_tbody>tr:hover>.table-sticky-right]:from-dominant-100 dark:[&_tbody>tr:hover>.table-sticky-right]:from-dominant-800 [&_tbody>tr:hover>.table-sticky-left]:to-dominant-100 dark:[&_tbody>tr:hover>.table-sticky-left]:to-dominant-800 [&_tbody>tr:hover>.table-sticky-right]:to-dominant-100 dark:[&_tbody>tr:hover>.table-sticky-right]:to-dominant-800 [&_tbody>tr:nth-child(even):hover>.table-sticky-left]:bg-linear-to-r [&_tbody>tr:nth-child(even):hover>.table-sticky-right]:bg-linear-to-r [&_tbody>tr:nth-child(even):hover>.table-sticky-left]:from-dominant-100 dark:[&_tbody>tr:nth-child(even):hover>.table-sticky-left]:from-dominant-800 [&_tbody>tr:nth-child(even):hover>.table-sticky-right]:from-dominant-100 dark:[&_tbody>tr:nth-child(even):hover>.table-sticky-right]:from-dominant-800 [&_tbody>tr:nth-child(even):hover>.table-sticky-left]:to-dominant-100 dark:[&_tbody>tr:nth-child(even):hover>.table-sticky-left]:to-dominant-800 [&_tbody>tr:nth-child(even):hover>.table-sticky-right]:to-dominant-100 dark:[&_tbody>tr:nth-child(even):hover>.table-sticky-right]:to-dominant-800"
>
<thead
class="[&_th]:bg-white! dark:[&_th]:bg-dominant-900! [&_th]:text-dominant-700! dark:[&_th]:text-dominant-200! [&_tr:last-child>th]:border-b-2"
>
<tr>
<th scope="col">Name</th>
<th scope="col">Department</th>
<th scope="col">Email</th>
<th scope="col">Last active</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">Avery Chen</th>
<td>Engineering</td>
<td>avery.chen@example.com</td>
<td>Today</td>
</tr>
<tr>
<th scope="row">Morgan Reyes</th>
<td>Design</td>
<td>morgan.reyes@example.com</td>
<td>Yesterday</td>
</tr>
<tr>
<th scope="row">Jordan Okafor</th>
<td>Support</td>
<td>jordan.okafor@example.com</td>
<td>3 days ago</td>
</tr>
<tr>
<th scope="row">Sam Patel</th>
<td>Finance</td>
<td>sam.patel@example.com</td>
<td>Last week</td>
</tr>
</tbody>
</table>
</div>
</div>
Table in card
When the table is the content of a card, let it fill the card edge to edge: the card has overflow-hidden and no padding, the title and the footer carry their own px-5, and the table uses the plain header so the header does not become a second coloured block. The cells use the same px-5 as the title so the text lines up, and the scroll region sits inside the card, so the rounded corners stay clean. The region has no border of its own here (the card already has one).
Team members
4 people in this workspace
| Name | Department | Last active | |
|---|---|---|---|
| Avery Chen | Engineering | avery.chen@example.com | Today |
| Morgan Reyes | Design | morgan.reyes@example.com | Yesterday |
| Jordan Okafor | Support | jordan.okafor@example.com | 3 days ago |
| Sam Patel | Finance | sam.patel@example.com | Last week |
<section
id="card-1543"
class="rounded-xl bg-white dark:bg-dominant-900 border border-dominant-200 dark:border-dominant-700 shadow-sm"
aria-labelledby="tables-in-card-heading"
>
<div
data-card-header
class="flex items-center justify-between gap-3 px-5 py-4 border-b empty:hidden border-dominant-200 dark:border-dominant-800"
></div>
<div class="flex items-center justify-between gap-3 px-5 py-4">
<div>
<h3
id="tables-in-card-heading"
class="text-base font-semibold text-dominant-900 dark:text-white"
>
Team members
</h3>
<p class="text-sm text-dominant-600 dark:text-dominant-300">4 people in this workspace</p>
</div>
</div>
<div class="border-t border-dominant-200 dark:border-dominant-700 *:rounded-none *:border-0">
<div
id="table-1636-wrapper"
class="isolate overflow-auto rounded-xl border border-dominant-200 dark:border-dominant-700 focus-visible:ring-2 focus-visible:ring-primary-500 focus-visible:outline-none dark:focus-visible:ring-primary-400"
tabindex="0"
>
<table
id="table-1636"
class="w-full border-separate border-spacing-0 text-left text-sm [&_th]:px-4 [&_td]:px-4 [&_th]:whitespace-nowrap [&_td]:whitespace-nowrap [&_td]:text-dominant-700 dark:[&_td]:text-dominant-200 [&_tbody_th]:font-medium [&_tbody_th]:text-dominant-900 dark:[&_tbody_th]:text-white [&_thead_th]:text-xs [&_thead_th]:font-semibold [&_thead_th]:tracking-wide [&_thead_th]:uppercase [&_thead_tr:last-child>*]:border-b [&_thead_tr:last-child>*]:border-dominant-300 dark:[&_thead_tr:last-child>*]:border-dominant-600 [&_tbody>tr+tr>*]:border-t [&_tbody>tr>*]:border-dominant-200 dark:[&_tbody>tr>*]:border-dominant-700 [&_tfoot>tr>*]:border-t [&_tfoot>tr>*]:border-dominant-300 dark:[&_tfoot>tr>*]:border-dominant-600 [&_tfoot>tr>*]:font-semibold [&_thead_th]:bg-dominant-200 dark:[&_thead_th]:bg-dominant-700 [&_thead_th]:text-dominant-800 dark:[&_thead_th]:text-dominant-100 [&_thead_td]:bg-dominant-100 dark:[&_thead_td]:bg-dominant-800 [&_tfoot>tr>*]:bg-dominant-100 dark:[&_tfoot>tr>*]:bg-dominant-800 [&_tfoot>tr>*]:text-dominant-900 dark:[&_tfoot>tr>*]:text-white [&_.table-sticky-left]:sticky [&_.table-sticky-right]:sticky [&_tbody_.table-sticky-left]:z-10 [&_tbody_.table-sticky-right]:z-10 [&_tbody_.table-sticky-left]:bg-white dark:[&_tbody_.table-sticky-left]:bg-dominant-900 [&_tbody_.table-sticky-right]:bg-white dark:[&_tbody_.table-sticky-right]:bg-dominant-900 [&_thead_th.table-sticky-left]:z-30 [&_thead_th.table-sticky-right]:z-30 [&_thead_td.table-sticky-left]:z-10 [&_thead_td.table-sticky-right]:z-10 [&_th]:py-3 [&_td]:py-3"
>
<thead
class="[&_th]:bg-white! dark:[&_th]:bg-dominant-900! [&_th]:text-dominant-700! dark:[&_th]:text-dominant-200! [&_tr:last-child>th]:border-b-2"
>
<tr>
<th scope="col">Name</th>
<th scope="col">Department</th>
<th scope="col">Email</th>
<th scope="col">Last active</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">Avery Chen</th>
<td>Engineering</td>
<td>avery.chen@example.com</td>
<td>Today</td>
</tr>
<tr>
<th scope="row">Morgan Reyes</th>
<td>Design</td>
<td>morgan.reyes@example.com</td>
<td>Yesterday</td>
</tr>
<tr>
<th scope="row">Jordan Okafor</th>
<td>Support</td>
<td>jordan.okafor@example.com</td>
<td>3 days ago</td>
</tr>
<tr>
<th scope="row">Sam Patel</th>
<td>Finance</td>
<td>sam.patel@example.com</td>
<td>Last week</td>
</tr>
</tbody>
</table>
</div>
</div>
<div
class="px-5 py-3 text-sm text-dominant-600 dark:text-dominant-300 border-t border-dominant-200 dark:border-dominant-700"
>
Showing 4 of 4
</div>
<div
data-card-footer
class="flex flex-wrap items-center justify-end gap-3 px-5 py-4 border-t empty:hidden border-dominant-200 dark:border-dominant-800"
></div>
</section>
Bordered
bordered adds the lines between the columns; every table already has a frame and lines between the rows.
| Name | Department | Last active | |
|---|---|---|---|
| Avery Chen | Engineering | avery.chen@example.com | Today |
| Morgan Reyes | Design | morgan.reyes@example.com | Yesterday |
| Jordan Okafor | Support | jordan.okafor@example.com | 3 days ago |
| Sam Patel | Finance | sam.patel@example.com | Last week |
<div
id="table-1496-wrapper"
class="isolate overflow-auto rounded-xl border border-dominant-200 dark:border-dominant-700 focus-visible:ring-2 focus-visible:ring-primary-500 focus-visible:outline-none dark:focus-visible:ring-primary-400"
tabindex="0"
>
<table
id="table-1496"
class="w-full border-separate border-spacing-0 text-left text-sm [&_th]:px-4 [&_td]:px-4 [&_th]:whitespace-nowrap [&_td]:whitespace-nowrap [&_td]:text-dominant-700 dark:[&_td]:text-dominant-200 [&_tbody_th]:font-medium [&_tbody_th]:text-dominant-900 dark:[&_tbody_th]:text-white [&_thead_th]:text-xs [&_thead_th]:font-semibold [&_thead_th]:tracking-wide [&_thead_th]:uppercase [&_thead_tr:last-child>*]:border-b [&_thead_tr:last-child>*]:border-dominant-300 dark:[&_thead_tr:last-child>*]:border-dominant-600 [&_tbody>tr+tr>*]:border-t [&_tbody>tr>*]:border-dominant-200 dark:[&_tbody>tr>*]:border-dominant-700 [&_tfoot>tr>*]:border-t [&_tfoot>tr>*]:border-dominant-300 dark:[&_tfoot>tr>*]:border-dominant-600 [&_tfoot>tr>*]:font-semibold [&_thead_th]:bg-dominant-200 dark:[&_thead_th]:bg-dominant-700 [&_thead_th]:text-dominant-800 dark:[&_thead_th]:text-dominant-100 [&_thead_td]:bg-dominant-100 dark:[&_thead_td]:bg-dominant-800 [&_tfoot>tr>*]:bg-dominant-100 dark:[&_tfoot>tr>*]:bg-dominant-800 [&_tfoot>tr>*]:text-dominant-900 dark:[&_tfoot>tr>*]:text-white [&_.table-sticky-left]:sticky [&_.table-sticky-right]:sticky [&_tbody_.table-sticky-left]:z-10 [&_tbody_.table-sticky-right]:z-10 [&_tbody_.table-sticky-left]:bg-white dark:[&_tbody_.table-sticky-left]:bg-dominant-900 [&_tbody_.table-sticky-right]:bg-white dark:[&_tbody_.table-sticky-right]:bg-dominant-900 [&_thead_th.table-sticky-left]:z-30 [&_thead_th.table-sticky-right]:z-30 [&_thead_td.table-sticky-left]:z-10 [&_thead_td.table-sticky-right]:z-10 [&_th]:py-3 [&_td]:py-3 [&_tr>*+*]:border-l [&_tr>*]:border-dominant-200 dark:[&_tr>*]:border-dominant-700"
>
<thead>
<tr>
<th scope="col">Name</th>
<th scope="col">Department</th>
<th scope="col">Email</th>
<th scope="col">Last active</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">Avery Chen</th>
<td>Engineering</td>
<td>avery.chen@example.com</td>
<td>Today</td>
</tr>
<tr>
<th scope="row">Morgan Reyes</th>
<td>Design</td>
<td>morgan.reyes@example.com</td>
<td>Yesterday</td>
</tr>
<tr>
<th scope="row">Jordan Okafor</th>
<td>Support</td>
<td>jordan.okafor@example.com</td>
<td>3 days ago</td>
</tr>
<tr>
<th scope="row">Sam Patel</th>
<td>Finance</td>
<td>sam.patel@example.com</td>
<td>Last week</td>
</tr>
</tbody>
</table>
</div>
Density
density changes the vertical padding of the cells: compact, standard (the default), and comfortable. Keep the touch target of any button inside a row at 24 px or more.
Compact (density="compact")
| Name | Department | Last active | |
|---|---|---|---|
| Avery Chen | Engineering | avery.chen@example.com | Today |
| Morgan Reyes | Design | morgan.reyes@example.com | Yesterday |
| Jordan Okafor | Support | jordan.okafor@example.com | 3 days ago |
| Sam Patel | Finance | sam.patel@example.com | Last week |
Standard (the default)
| Name | Department | Last active | |
|---|---|---|---|
| Avery Chen | Engineering | avery.chen@example.com | Today |
| Morgan Reyes | Design | morgan.reyes@example.com | Yesterday |
| Jordan Okafor | Support | jordan.okafor@example.com | 3 days ago |
| Sam Patel | Finance | sam.patel@example.com | Last week |
Comfortable (density="comfortable")
| Name | Department | Last active | |
|---|---|---|---|
| Avery Chen | Engineering | avery.chen@example.com | Today |
| Morgan Reyes | Design | morgan.reyes@example.com | Yesterday |
| Jordan Okafor | Support | jordan.okafor@example.com | 3 days ago |
| Sam Patel | Finance | sam.patel@example.com | Last week |
<div>
<h3 class="mb-2 text-sm font-semibold text-dominant-900 dark:text-white">
Compact (<code>density="compact"</code>)
</h3>
<div
id="table-1554-wrapper"
class="isolate overflow-auto rounded-xl border border-dominant-200 dark:border-dominant-700 focus-visible:ring-2 focus-visible:ring-primary-500 focus-visible:outline-none dark:focus-visible:ring-primary-400"
tabindex="0"
>
<table
id="table-1554"
class="w-full border-separate border-spacing-0 text-left text-sm [&_th]:px-4 [&_td]:px-4 [&_th]:whitespace-nowrap [&_td]:whitespace-nowrap [&_td]:text-dominant-700 dark:[&_td]:text-dominant-200 [&_tbody_th]:font-medium [&_tbody_th]:text-dominant-900 dark:[&_tbody_th]:text-white [&_thead_th]:text-xs [&_thead_th]:font-semibold [&_thead_th]:tracking-wide [&_thead_th]:uppercase [&_thead_tr:last-child>*]:border-b [&_thead_tr:last-child>*]:border-dominant-300 dark:[&_thead_tr:last-child>*]:border-dominant-600 [&_tbody>tr+tr>*]:border-t [&_tbody>tr>*]:border-dominant-200 dark:[&_tbody>tr>*]:border-dominant-700 [&_tfoot>tr>*]:border-t [&_tfoot>tr>*]:border-dominant-300 dark:[&_tfoot>tr>*]:border-dominant-600 [&_tfoot>tr>*]:font-semibold [&_thead_th]:bg-dominant-200 dark:[&_thead_th]:bg-dominant-700 [&_thead_th]:text-dominant-800 dark:[&_thead_th]:text-dominant-100 [&_thead_td]:bg-dominant-100 dark:[&_thead_td]:bg-dominant-800 [&_tfoot>tr>*]:bg-dominant-100 dark:[&_tfoot>tr>*]:bg-dominant-800 [&_tfoot>tr>*]:text-dominant-900 dark:[&_tfoot>tr>*]:text-white [&_.table-sticky-left]:sticky [&_.table-sticky-right]:sticky [&_tbody_.table-sticky-left]:z-10 [&_tbody_.table-sticky-right]:z-10 [&_tbody_.table-sticky-left]:bg-white dark:[&_tbody_.table-sticky-left]:bg-dominant-900 [&_tbody_.table-sticky-right]:bg-white dark:[&_tbody_.table-sticky-right]:bg-dominant-900 [&_thead_th.table-sticky-left]:z-30 [&_thead_th.table-sticky-right]:z-30 [&_thead_td.table-sticky-left]:z-10 [&_thead_td.table-sticky-right]:z-10 [&_th]:py-2 [&_td]:py-2"
>
<thead>
<tr>
<th scope="col">Name</th>
<th scope="col">Department</th>
<th scope="col">Email</th>
<th scope="col">Last active</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">Avery Chen</th>
<td>Engineering</td>
<td>avery.chen@example.com</td>
<td>Today</td>
</tr>
<tr>
<th scope="row">Morgan Reyes</th>
<td>Design</td>
<td>morgan.reyes@example.com</td>
<td>Yesterday</td>
</tr>
<tr>
<th scope="row">Jordan Okafor</th>
<td>Support</td>
<td>jordan.okafor@example.com</td>
<td>3 days ago</td>
</tr>
<tr>
<th scope="row">Sam Patel</th>
<td>Finance</td>
<td>sam.patel@example.com</td>
<td>Last week</td>
</tr>
</tbody>
</table>
</div>
</div>
<div>
<h3 class="mb-2 text-sm font-semibold text-dominant-900 dark:text-white">
Standard (the default)
</h3>
<div
id="table-2047-wrapper"
class="isolate overflow-auto rounded-xl border border-dominant-200 dark:border-dominant-700 focus-visible:ring-2 focus-visible:ring-primary-500 focus-visible:outline-none dark:focus-visible:ring-primary-400"
tabindex="0"
>
<table
id="table-2047"
class="w-full border-separate border-spacing-0 text-left text-sm [&_th]:px-4 [&_td]:px-4 [&_th]:whitespace-nowrap [&_td]:whitespace-nowrap [&_td]:text-dominant-700 dark:[&_td]:text-dominant-200 [&_tbody_th]:font-medium [&_tbody_th]:text-dominant-900 dark:[&_tbody_th]:text-white [&_thead_th]:text-xs [&_thead_th]:font-semibold [&_thead_th]:tracking-wide [&_thead_th]:uppercase [&_thead_tr:last-child>*]:border-b [&_thead_tr:last-child>*]:border-dominant-300 dark:[&_thead_tr:last-child>*]:border-dominant-600 [&_tbody>tr+tr>*]:border-t [&_tbody>tr>*]:border-dominant-200 dark:[&_tbody>tr>*]:border-dominant-700 [&_tfoot>tr>*]:border-t [&_tfoot>tr>*]:border-dominant-300 dark:[&_tfoot>tr>*]:border-dominant-600 [&_tfoot>tr>*]:font-semibold [&_thead_th]:bg-dominant-200 dark:[&_thead_th]:bg-dominant-700 [&_thead_th]:text-dominant-800 dark:[&_thead_th]:text-dominant-100 [&_thead_td]:bg-dominant-100 dark:[&_thead_td]:bg-dominant-800 [&_tfoot>tr>*]:bg-dominant-100 dark:[&_tfoot>tr>*]:bg-dominant-800 [&_tfoot>tr>*]:text-dominant-900 dark:[&_tfoot>tr>*]:text-white [&_.table-sticky-left]:sticky [&_.table-sticky-right]:sticky [&_tbody_.table-sticky-left]:z-10 [&_tbody_.table-sticky-right]:z-10 [&_tbody_.table-sticky-left]:bg-white dark:[&_tbody_.table-sticky-left]:bg-dominant-900 [&_tbody_.table-sticky-right]:bg-white dark:[&_tbody_.table-sticky-right]:bg-dominant-900 [&_thead_th.table-sticky-left]:z-30 [&_thead_th.table-sticky-right]:z-30 [&_thead_td.table-sticky-left]:z-10 [&_thead_td.table-sticky-right]:z-10 [&_th]:py-3 [&_td]:py-3"
>
<thead>
<tr>
<th scope="col">Name</th>
<th scope="col">Department</th>
<th scope="col">Email</th>
<th scope="col">Last active</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">Avery Chen</th>
<td>Engineering</td>
<td>avery.chen@example.com</td>
<td>Today</td>
</tr>
<tr>
<th scope="row">Morgan Reyes</th>
<td>Design</td>
<td>morgan.reyes@example.com</td>
<td>Yesterday</td>
</tr>
<tr>
<th scope="row">Jordan Okafor</th>
<td>Support</td>
<td>jordan.okafor@example.com</td>
<td>3 days ago</td>
</tr>
<tr>
<th scope="row">Sam Patel</th>
<td>Finance</td>
<td>sam.patel@example.com</td>
<td>Last week</td>
</tr>
</tbody>
</table>
</div>
</div>
<div>
<h3 class="mb-2 text-sm font-semibold text-dominant-900 dark:text-white">
Comfortable (<code>density="comfortable"</code>)
</h3>
<div
id="table-2156-wrapper"
class="isolate overflow-auto rounded-xl border border-dominant-200 dark:border-dominant-700 focus-visible:ring-2 focus-visible:ring-primary-500 focus-visible:outline-none dark:focus-visible:ring-primary-400"
tabindex="0"
>
<table
id="table-2156"
class="w-full border-separate border-spacing-0 text-left text-sm [&_th]:px-4 [&_td]:px-4 [&_th]:whitespace-nowrap [&_td]:whitespace-nowrap [&_td]:text-dominant-700 dark:[&_td]:text-dominant-200 [&_tbody_th]:font-medium [&_tbody_th]:text-dominant-900 dark:[&_tbody_th]:text-white [&_thead_th]:text-xs [&_thead_th]:font-semibold [&_thead_th]:tracking-wide [&_thead_th]:uppercase [&_thead_tr:last-child>*]:border-b [&_thead_tr:last-child>*]:border-dominant-300 dark:[&_thead_tr:last-child>*]:border-dominant-600 [&_tbody>tr+tr>*]:border-t [&_tbody>tr>*]:border-dominant-200 dark:[&_tbody>tr>*]:border-dominant-700 [&_tfoot>tr>*]:border-t [&_tfoot>tr>*]:border-dominant-300 dark:[&_tfoot>tr>*]:border-dominant-600 [&_tfoot>tr>*]:font-semibold [&_thead_th]:bg-dominant-200 dark:[&_thead_th]:bg-dominant-700 [&_thead_th]:text-dominant-800 dark:[&_thead_th]:text-dominant-100 [&_thead_td]:bg-dominant-100 dark:[&_thead_td]:bg-dominant-800 [&_tfoot>tr>*]:bg-dominant-100 dark:[&_tfoot>tr>*]:bg-dominant-800 [&_tfoot>tr>*]:text-dominant-900 dark:[&_tfoot>tr>*]:text-white [&_.table-sticky-left]:sticky [&_.table-sticky-right]:sticky [&_tbody_.table-sticky-left]:z-10 [&_tbody_.table-sticky-right]:z-10 [&_tbody_.table-sticky-left]:bg-white dark:[&_tbody_.table-sticky-left]:bg-dominant-900 [&_tbody_.table-sticky-right]:bg-white dark:[&_tbody_.table-sticky-right]:bg-dominant-900 [&_thead_th.table-sticky-left]:z-30 [&_thead_th.table-sticky-right]:z-30 [&_thead_td.table-sticky-left]:z-10 [&_thead_td.table-sticky-right]:z-10 [&_th]:py-4 [&_td]:py-4"
>
<thead>
<tr>
<th scope="col">Name</th>
<th scope="col">Department</th>
<th scope="col">Email</th>
<th scope="col">Last active</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">Avery Chen</th>
<td>Engineering</td>
<td>avery.chen@example.com</td>
<td>Today</td>
</tr>
<tr>
<th scope="row">Morgan Reyes</th>
<td>Design</td>
<td>morgan.reyes@example.com</td>
<td>Yesterday</td>
</tr>
<tr>
<th scope="row">Jordan Okafor</th>
<td>Support</td>
<td>jordan.okafor@example.com</td>
<td>3 days ago</td>
</tr>
<tr>
<th scope="row">Sam Patel</th>
<td>Finance</td>
<td>sam.patel@example.com</td>
<td>Last week</td>
</tr>
</tbody>
</table>
</div>
</div>
Row and column themes
A row or a column takes a variant colour to mark a state, with plain classes on the native elements. An accent bar is a border-l-4 in the variant -500 on the first cell of the row. A tinted row keeps the stripes and the hover in its own colour: -50, -100 on even rows, and -200 under the pointer (dark -900/20, -900/35, -900/50). A column does the same on its cells (in-[tr:nth-child(even)]: and in-[tr:hover]:) and has -200 on its header. The colour classes are important (!), because the stripes, the hover, and the header colour of the table are set with stronger selectors. Colour is never the only signal: every row or column also says its state in text, a badge, or an icon with a label.
Accent bar, striped and hover
| Invoice | Customer | Status | Amount |
|---|---|---|---|
| INV-1042 | Acme Inc. | Scheduled | $1,280.00 |
| INV-1041 | Globex Corporation | Paid | $340.50 |
| INV-1040 | Initech | Sent | $2,150.00 |
| INV-1039 | Hooli | Pending | $89.99 |
| INV-1038 | Umbrella Group | Overdue | $760.25 |
| INV-1037 | Acme Inc. | Draft | $1,280.00 |
Tinted rows, striped and hover
| Task | Status | Owner | Due |
|---|---|---|---|
| Draft the Q4 roadmap | Planned | Avery Chen | Nov 12 |
| Plan the onboarding revamp | Planned | Morgan Reyes | Nov 14 |
| Schedule customer interviews | Planned | Jordan Okafor | Nov 18 |
| Ship the billing export | Done | Sam Patel | Oct 28 |
| Migrate the email provider | Done | Riley Kim | Oct 30 |
| Publish the API docs | Done | Avery Chen | Nov 02 |
| Review the pricing page copy | In review | Morgan Reyes | Nov 08 |
| Review the accessibility audit | In review | Jordan Okafor | Nov 09 |
| Review the security checklist | In review | Sam Patel | Nov 10 |
| Renew the SSL certificates | At risk | Riley Kim | Nov 11 |
| Finish the data import tool | At risk | Avery Chen | Nov 13 |
| Hire a support lead | At risk | Morgan Reyes | Nov 15 |
| Fix failed payment retries | Blocked | Jordan Okafor | Nov 06 |
| Restore the nightly backups | Blocked | Sam Patel | Nov 07 |
| Resolve the login outage | Blocked | Riley Kim | Nov 08 |
Variant per column, striped and hover
| Team | Planned | Done | In review | At risk | Blocked |
|---|---|---|---|---|---|
| Frontend | 8 | 21 | 4 | 2 | 1 |
| Backend | 5 | 34 | 6 | 3 | 2 |
| Design | 3 | 12 | 2 | 1 | 0 |
<div class="space-y-8">
<div>
<h3 class="mb-2 text-sm font-semibold text-dominant-900 dark:text-white">
Accent bar, striped and hover
</h3>
<div
id="table-1552-wrapper"
class="isolate overflow-auto rounded-xl border border-dominant-200 dark:border-dominant-700 focus-visible:ring-2 focus-visible:ring-primary-500 focus-visible:outline-none dark:focus-visible:ring-primary-400"
tabindex="0"
>
<table
id="table-1552"
class="w-full border-separate border-spacing-0 text-left text-sm [&_th]:px-4 [&_td]:px-4 [&_th]:whitespace-nowrap [&_td]:whitespace-nowrap [&_td]:text-dominant-700 dark:[&_td]:text-dominant-200 [&_tbody_th]:font-medium [&_tbody_th]:text-dominant-900 dark:[&_tbody_th]:text-white [&_thead_th]:text-xs [&_thead_th]:font-semibold [&_thead_th]:tracking-wide [&_thead_th]:uppercase [&_thead_tr:last-child>*]:border-b [&_thead_tr:last-child>*]:border-dominant-300 dark:[&_thead_tr:last-child>*]:border-dominant-600 [&_tbody>tr+tr>*]:border-t [&_tbody>tr>*]:border-dominant-200 dark:[&_tbody>tr>*]:border-dominant-700 [&_tfoot>tr>*]:border-t [&_tfoot>tr>*]:border-dominant-300 dark:[&_tfoot>tr>*]:border-dominant-600 [&_tfoot>tr>*]:font-semibold [&_thead_th]:bg-dominant-200 dark:[&_thead_th]:bg-dominant-700 [&_thead_th]:text-dominant-800 dark:[&_thead_th]:text-dominant-100 [&_thead_td]:bg-dominant-100 dark:[&_thead_td]:bg-dominant-800 [&_tfoot>tr>*]:bg-dominant-100 dark:[&_tfoot>tr>*]:bg-dominant-800 [&_tfoot>tr>*]:text-dominant-900 dark:[&_tfoot>tr>*]:text-white [&_.table-sticky-left]:sticky [&_.table-sticky-right]:sticky [&_tbody_.table-sticky-left]:z-10 [&_tbody_.table-sticky-right]:z-10 [&_tbody_.table-sticky-left]:bg-white dark:[&_tbody_.table-sticky-left]:bg-dominant-900 [&_tbody_.table-sticky-right]:bg-white dark:[&_tbody_.table-sticky-right]:bg-dominant-900 [&_thead_th.table-sticky-left]:z-30 [&_thead_th.table-sticky-right]:z-30 [&_thead_td.table-sticky-left]:z-10 [&_thead_td.table-sticky-right]:z-10 [&_th]:py-3 [&_td]:py-3 [&_tbody>tr:nth-child(even)]:bg-dominant-50 dark:[&_tbody>tr:nth-child(even)]:bg-dominant-800/40 [&_tbody>tr:nth-child(even)>.table-sticky-left]:bg-linear-to-r [&_tbody>tr:nth-child(even)>.table-sticky-right]:bg-linear-to-r [&_tbody>tr:nth-child(even)>.table-sticky-left]:from-dominant-50 dark:[&_tbody>tr:nth-child(even)>.table-sticky-left]:from-dominant-800/40 [&_tbody>tr:nth-child(even)>.table-sticky-right]:from-dominant-50 dark:[&_tbody>tr:nth-child(even)>.table-sticky-right]:from-dominant-800/40 [&_tbody>tr:nth-child(even)>.table-sticky-left]:to-dominant-50 dark:[&_tbody>tr:nth-child(even)>.table-sticky-left]:to-dominant-800/40 [&_tbody>tr:nth-child(even)>.table-sticky-right]:to-dominant-50 dark:[&_tbody>tr:nth-child(even)>.table-sticky-right]:to-dominant-800/40 [&_tbody>tr:hover]:bg-dominant-100 dark:[&_tbody>tr:hover]:bg-dominant-800 [&_tbody>tr:nth-child(even):hover]:bg-dominant-100 dark:[&_tbody>tr:nth-child(even):hover]:bg-dominant-800 [&_tbody>tr:hover>.table-sticky-left]:bg-linear-to-r [&_tbody>tr:hover>.table-sticky-right]:bg-linear-to-r [&_tbody>tr:hover>.table-sticky-left]:from-dominant-100 dark:[&_tbody>tr:hover>.table-sticky-left]:from-dominant-800 [&_tbody>tr:hover>.table-sticky-right]:from-dominant-100 dark:[&_tbody>tr:hover>.table-sticky-right]:from-dominant-800 [&_tbody>tr:hover>.table-sticky-left]:to-dominant-100 dark:[&_tbody>tr:hover>.table-sticky-left]:to-dominant-800 [&_tbody>tr:hover>.table-sticky-right]:to-dominant-100 dark:[&_tbody>tr:hover>.table-sticky-right]:to-dominant-800 [&_tbody>tr:nth-child(even):hover>.table-sticky-left]:bg-linear-to-r [&_tbody>tr:nth-child(even):hover>.table-sticky-right]:bg-linear-to-r [&_tbody>tr:nth-child(even):hover>.table-sticky-left]:from-dominant-100 dark:[&_tbody>tr:nth-child(even):hover>.table-sticky-left]:from-dominant-800 [&_tbody>tr:nth-child(even):hover>.table-sticky-right]:from-dominant-100 dark:[&_tbody>tr:nth-child(even):hover>.table-sticky-right]:from-dominant-800 [&_tbody>tr:nth-child(even):hover>.table-sticky-left]:to-dominant-100 dark:[&_tbody>tr:nth-child(even):hover>.table-sticky-left]:to-dominant-800 [&_tbody>tr:nth-child(even):hover>.table-sticky-right]:to-dominant-100 dark:[&_tbody>tr:nth-child(even):hover>.table-sticky-right]:to-dominant-800"
>
<thead>
<tr>
<th scope="col">Invoice</th>
<th scope="col">Customer</th>
<th scope="col">Status</th>
<th scope="col">Amount</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row" class="border-l-4 border-l-primary-500!">INV-1042</th>
<td>Acme Inc.</td>
<td>
<span
class="inline-flex items-center gap-1 px-2 py-0.5 whitespace-nowrap text-xs font-semibold text-primary-700 dark:text-primary-300 bg-primary-100 dark:bg-primary-900/50 rounded-full"
>
<i aria-hidden="true" class="text-[10px] fa-solid fa-calendar"> </i>Scheduled</span
>
</td>
<td>$1,280.00</td>
</tr>
<tr>
<th scope="row" class="border-l-4 border-l-success-500!">INV-1041</th>
<td>Globex Corporation</td>
<td>
<span
class="inline-flex items-center gap-1 px-2 py-0.5 whitespace-nowrap text-xs font-semibold text-success-800 dark:text-success-300 bg-success-100 dark:bg-success-900/50 rounded-full"
>
<i aria-hidden="true" class="text-[10px] fa-solid fa-circle-check"> </i>Paid</span
>
</td>
<td>$340.50</td>
</tr>
<tr>
<th scope="row" class="border-l-4 border-l-info-500!">INV-1040</th>
<td>Initech</td>
<td>
<span
class="inline-flex items-center gap-1 px-2 py-0.5 whitespace-nowrap text-xs font-semibold text-info-800 dark:text-info-300 bg-info-100 dark:bg-info-900/50 rounded-full"
>
<i aria-hidden="true" class="text-[10px] fa-solid fa-paper-plane"> </i>Sent</span
>
</td>
<td>$2,150.00</td>
</tr>
<tr>
<th scope="row" class="border-l-4 border-l-warning-500!">INV-1039</th>
<td>Hooli</td>
<td>
<span
class="inline-flex items-center gap-1 px-2 py-0.5 whitespace-nowrap text-xs font-semibold text-warning-800 dark:text-warning-300 bg-warning-100 dark:bg-warning-900/50 rounded-full"
>
<i aria-hidden="true" class="text-[10px] fa-solid fa-clock"> </i>Pending</span
>
</td>
<td>$89.99</td>
</tr>
<tr>
<th scope="row" class="border-l-4 border-l-danger-500!">INV-1038</th>
<td>Umbrella Group</td>
<td>
<span
class="inline-flex items-center gap-1 px-2 py-0.5 whitespace-nowrap text-xs font-semibold text-danger-800 dark:text-danger-300 bg-danger-100 dark:bg-danger-900/50 rounded-full"
>
<i aria-hidden="true" class="text-[10px] fa-solid fa-circle-exclamation"> </i
>Overdue</span
>
</td>
<td>$760.25</td>
</tr>
<tr>
<th scope="row" class="border-l-4 border-l-dominant-500!">INV-1037</th>
<td>Acme Inc.</td>
<td>
<span
class="inline-flex items-center gap-1 px-2 py-0.5 whitespace-nowrap text-xs font-semibold text-dominant-700 dark:text-dominant-300 bg-dominant-100 dark:bg-dominant-800 rounded-full"
>
<i aria-hidden="true" class="text-[10px] fa-solid fa-file"> </i>Draft</span
>
</td>
<td>$1,280.00</td>
</tr>
</tbody>
</table>
</div>
</div>
<div>
<h3 class="mb-2 text-sm font-semibold text-dominant-900 dark:text-white">
Tinted rows, striped and hover
</h3>
<div
id="table-2100-wrapper"
class="isolate overflow-auto rounded-xl border border-dominant-200 dark:border-dominant-700 focus-visible:ring-2 focus-visible:ring-primary-500 focus-visible:outline-none dark:focus-visible:ring-primary-400"
tabindex="0"
>
<table
id="table-2100"
class="w-full border-separate border-spacing-0 text-left text-sm [&_th]:px-4 [&_td]:px-4 [&_th]:whitespace-nowrap [&_td]:whitespace-nowrap [&_td]:text-dominant-700 dark:[&_td]:text-dominant-200 [&_tbody_th]:font-medium [&_tbody_th]:text-dominant-900 dark:[&_tbody_th]:text-white [&_thead_th]:text-xs [&_thead_th]:font-semibold [&_thead_th]:tracking-wide [&_thead_th]:uppercase [&_thead_tr:last-child>*]:border-b [&_thead_tr:last-child>*]:border-dominant-300 dark:[&_thead_tr:last-child>*]:border-dominant-600 [&_tbody>tr+tr>*]:border-t [&_tbody>tr>*]:border-dominant-200 dark:[&_tbody>tr>*]:border-dominant-700 [&_tfoot>tr>*]:border-t [&_tfoot>tr>*]:border-dominant-300 dark:[&_tfoot>tr>*]:border-dominant-600 [&_tfoot>tr>*]:font-semibold [&_thead_th]:bg-dominant-200 dark:[&_thead_th]:bg-dominant-700 [&_thead_th]:text-dominant-800 dark:[&_thead_th]:text-dominant-100 [&_thead_td]:bg-dominant-100 dark:[&_thead_td]:bg-dominant-800 [&_tfoot>tr>*]:bg-dominant-100 dark:[&_tfoot>tr>*]:bg-dominant-800 [&_tfoot>tr>*]:text-dominant-900 dark:[&_tfoot>tr>*]:text-white [&_.table-sticky-left]:sticky [&_.table-sticky-right]:sticky [&_tbody_.table-sticky-left]:z-10 [&_tbody_.table-sticky-right]:z-10 [&_tbody_.table-sticky-left]:bg-white dark:[&_tbody_.table-sticky-left]:bg-dominant-900 [&_tbody_.table-sticky-right]:bg-white dark:[&_tbody_.table-sticky-right]:bg-dominant-900 [&_thead_th.table-sticky-left]:z-30 [&_thead_th.table-sticky-right]:z-30 [&_thead_td.table-sticky-left]:z-10 [&_thead_td.table-sticky-right]:z-10 [&_th]:py-3 [&_td]:py-3 [&_tbody>tr:nth-child(even)]:bg-dominant-50 dark:[&_tbody>tr:nth-child(even)]:bg-dominant-800/40 [&_tbody>tr:nth-child(even)>.table-sticky-left]:bg-linear-to-r [&_tbody>tr:nth-child(even)>.table-sticky-right]:bg-linear-to-r [&_tbody>tr:nth-child(even)>.table-sticky-left]:from-dominant-50 dark:[&_tbody>tr:nth-child(even)>.table-sticky-left]:from-dominant-800/40 [&_tbody>tr:nth-child(even)>.table-sticky-right]:from-dominant-50 dark:[&_tbody>tr:nth-child(even)>.table-sticky-right]:from-dominant-800/40 [&_tbody>tr:nth-child(even)>.table-sticky-left]:to-dominant-50 dark:[&_tbody>tr:nth-child(even)>.table-sticky-left]:to-dominant-800/40 [&_tbody>tr:nth-child(even)>.table-sticky-right]:to-dominant-50 dark:[&_tbody>tr:nth-child(even)>.table-sticky-right]:to-dominant-800/40 [&_tbody>tr:hover]:bg-dominant-100 dark:[&_tbody>tr:hover]:bg-dominant-800 [&_tbody>tr:nth-child(even):hover]:bg-dominant-100 dark:[&_tbody>tr:nth-child(even):hover]:bg-dominant-800 [&_tbody>tr:hover>.table-sticky-left]:bg-linear-to-r [&_tbody>tr:hover>.table-sticky-right]:bg-linear-to-r [&_tbody>tr:hover>.table-sticky-left]:from-dominant-100 dark:[&_tbody>tr:hover>.table-sticky-left]:from-dominant-800 [&_tbody>tr:hover>.table-sticky-right]:from-dominant-100 dark:[&_tbody>tr:hover>.table-sticky-right]:from-dominant-800 [&_tbody>tr:hover>.table-sticky-left]:to-dominant-100 dark:[&_tbody>tr:hover>.table-sticky-left]:to-dominant-800 [&_tbody>tr:hover>.table-sticky-right]:to-dominant-100 dark:[&_tbody>tr:hover>.table-sticky-right]:to-dominant-800 [&_tbody>tr:nth-child(even):hover>.table-sticky-left]:bg-linear-to-r [&_tbody>tr:nth-child(even):hover>.table-sticky-right]:bg-linear-to-r [&_tbody>tr:nth-child(even):hover>.table-sticky-left]:from-dominant-100 dark:[&_tbody>tr:nth-child(even):hover>.table-sticky-left]:from-dominant-800 [&_tbody>tr:nth-child(even):hover>.table-sticky-right]:from-dominant-100 dark:[&_tbody>tr:nth-child(even):hover>.table-sticky-right]:from-dominant-800 [&_tbody>tr:nth-child(even):hover>.table-sticky-left]:to-dominant-100 dark:[&_tbody>tr:nth-child(even):hover>.table-sticky-left]:to-dominant-800 [&_tbody>tr:nth-child(even):hover>.table-sticky-right]:to-dominant-100 dark:[&_tbody>tr:nth-child(even):hover>.table-sticky-right]:to-dominant-800"
>
<thead>
<tr>
<th scope="col">Task</th>
<th scope="col">Status</th>
<th scope="col">Owner</th>
<th scope="col">Due</th>
</tr>
</thead>
<tbody>
<tr
class="bg-primary-50! even:bg-primary-100! hover:bg-primary-200! dark:bg-primary-900/20! dark:even:bg-primary-900/35! dark:hover:bg-primary-900/50!"
>
<th scope="row">Draft the Q4 roadmap</th>
<td>
<span
class="inline-flex items-center gap-1 px-2 py-0.5 whitespace-nowrap text-xs font-semibold text-primary-800 dark:text-primary-200 bg-white dark:bg-dominant-900 rounded-full ring-1 ring-inset ring-primary-300 dark:ring-primary-700"
>
<i aria-hidden="true" class="text-[10px] fa-solid fa-calendar"> </i>Planned</span
>
</td>
<td>Avery Chen</td>
<td>Nov 12</td>
</tr>
<tr
class="bg-primary-50! even:bg-primary-100! hover:bg-primary-200! dark:bg-primary-900/20! dark:even:bg-primary-900/35! dark:hover:bg-primary-900/50!"
>
<th scope="row">Plan the onboarding revamp</th>
<td>
<span
class="inline-flex items-center gap-1 px-2 py-0.5 whitespace-nowrap text-xs font-semibold text-primary-800 dark:text-primary-200 bg-white dark:bg-dominant-900 rounded-full ring-1 ring-inset ring-primary-300 dark:ring-primary-700"
>
<i aria-hidden="true" class="text-[10px] fa-solid fa-calendar"> </i>Planned</span
>
</td>
<td>Morgan Reyes</td>
<td>Nov 14</td>
</tr>
<tr
class="bg-primary-50! even:bg-primary-100! hover:bg-primary-200! dark:bg-primary-900/20! dark:even:bg-primary-900/35! dark:hover:bg-primary-900/50!"
>
<th scope="row">Schedule customer interviews</th>
<td>
<span
class="inline-flex items-center gap-1 px-2 py-0.5 whitespace-nowrap text-xs font-semibold text-primary-800 dark:text-primary-200 bg-white dark:bg-dominant-900 rounded-full ring-1 ring-inset ring-primary-300 dark:ring-primary-700"
>
<i aria-hidden="true" class="text-[10px] fa-solid fa-calendar"> </i>Planned</span
>
</td>
<td>Jordan Okafor</td>
<td>Nov 18</td>
</tr>
<tr
class="bg-success-50! even:bg-success-100! hover:bg-success-200! dark:bg-success-900/20! dark:even:bg-success-900/35! dark:hover:bg-success-900/50!"
>
<th scope="row">Ship the billing export</th>
<td>
<span
class="inline-flex items-center gap-1 px-2 py-0.5 whitespace-nowrap text-xs font-semibold text-success-800 dark:text-success-200 bg-white dark:bg-dominant-900 rounded-full ring-1 ring-inset ring-success-300 dark:ring-success-700"
>
<i aria-hidden="true" class="text-[10px] fa-solid fa-circle-check"> </i>Done</span
>
</td>
<td>Sam Patel</td>
<td>Oct 28</td>
</tr>
<tr
class="bg-success-50! even:bg-success-100! hover:bg-success-200! dark:bg-success-900/20! dark:even:bg-success-900/35! dark:hover:bg-success-900/50!"
>
<th scope="row">Migrate the email provider</th>
<td>
<span
class="inline-flex items-center gap-1 px-2 py-0.5 whitespace-nowrap text-xs font-semibold text-success-800 dark:text-success-200 bg-white dark:bg-dominant-900 rounded-full ring-1 ring-inset ring-success-300 dark:ring-success-700"
>
<i aria-hidden="true" class="text-[10px] fa-solid fa-circle-check"> </i>Done</span
>
</td>
<td>Riley Kim</td>
<td>Oct 30</td>
</tr>
<tr
class="bg-success-50! even:bg-success-100! hover:bg-success-200! dark:bg-success-900/20! dark:even:bg-success-900/35! dark:hover:bg-success-900/50!"
>
<th scope="row">Publish the API docs</th>
<td>
<span
class="inline-flex items-center gap-1 px-2 py-0.5 whitespace-nowrap text-xs font-semibold text-success-800 dark:text-success-200 bg-white dark:bg-dominant-900 rounded-full ring-1 ring-inset ring-success-300 dark:ring-success-700"
>
<i aria-hidden="true" class="text-[10px] fa-solid fa-circle-check"> </i>Done</span
>
</td>
<td>Avery Chen</td>
<td>Nov 02</td>
</tr>
<tr
class="bg-info-50! even:bg-info-100! hover:bg-info-200! dark:bg-info-900/20! dark:even:bg-info-900/35! dark:hover:bg-info-900/50!"
>
<th scope="row">Review the pricing page copy</th>
<td>
<span
class="inline-flex items-center gap-1 px-2 py-0.5 whitespace-nowrap text-xs font-semibold text-info-800 dark:text-info-200 bg-white dark:bg-dominant-900 rounded-full ring-1 ring-inset ring-info-300 dark:ring-info-700"
>
<i aria-hidden="true" class="text-[10px] fa-solid fa-eye"> </i>In review</span
>
</td>
<td>Morgan Reyes</td>
<td>Nov 08</td>
</tr>
<tr
class="bg-info-50! even:bg-info-100! hover:bg-info-200! dark:bg-info-900/20! dark:even:bg-info-900/35! dark:hover:bg-info-900/50!"
>
<th scope="row">Review the accessibility audit</th>
<td>
<span
class="inline-flex items-center gap-1 px-2 py-0.5 whitespace-nowrap text-xs font-semibold text-info-800 dark:text-info-200 bg-white dark:bg-dominant-900 rounded-full ring-1 ring-inset ring-info-300 dark:ring-info-700"
>
<i aria-hidden="true" class="text-[10px] fa-solid fa-eye"> </i>In review</span
>
</td>
<td>Jordan Okafor</td>
<td>Nov 09</td>
</tr>
<tr
class="bg-info-50! even:bg-info-100! hover:bg-info-200! dark:bg-info-900/20! dark:even:bg-info-900/35! dark:hover:bg-info-900/50!"
>
<th scope="row">Review the security checklist</th>
<td>
<span
class="inline-flex items-center gap-1 px-2 py-0.5 whitespace-nowrap text-xs font-semibold text-info-800 dark:text-info-200 bg-white dark:bg-dominant-900 rounded-full ring-1 ring-inset ring-info-300 dark:ring-info-700"
>
<i aria-hidden="true" class="text-[10px] fa-solid fa-eye"> </i>In review</span
>
</td>
<td>Sam Patel</td>
<td>Nov 10</td>
</tr>
<tr
class="bg-warning-50! even:bg-warning-100! hover:bg-warning-200! dark:bg-warning-900/20! dark:even:bg-warning-900/35! dark:hover:bg-warning-900/50!"
>
<th scope="row">Renew the SSL certificates</th>
<td>
<span
class="inline-flex items-center gap-1 px-2 py-0.5 whitespace-nowrap text-xs font-semibold text-warning-800 dark:text-warning-200 bg-white dark:bg-dominant-900 rounded-full ring-1 ring-inset ring-warning-300 dark:ring-warning-700"
>
<i aria-hidden="true" class="text-[10px] fa-solid fa-triangle-exclamation"> </i>At
risk</span
>
</td>
<td>Riley Kim</td>
<td>Nov 11</td>
</tr>
<tr
class="bg-warning-50! even:bg-warning-100! hover:bg-warning-200! dark:bg-warning-900/20! dark:even:bg-warning-900/35! dark:hover:bg-warning-900/50!"
>
<th scope="row">Finish the data import tool</th>
<td>
<span
class="inline-flex items-center gap-1 px-2 py-0.5 whitespace-nowrap text-xs font-semibold text-warning-800 dark:text-warning-200 bg-white dark:bg-dominant-900 rounded-full ring-1 ring-inset ring-warning-300 dark:ring-warning-700"
>
<i aria-hidden="true" class="text-[10px] fa-solid fa-triangle-exclamation"> </i>At
risk</span
>
</td>
<td>Avery Chen</td>
<td>Nov 13</td>
</tr>
<tr
class="bg-warning-50! even:bg-warning-100! hover:bg-warning-200! dark:bg-warning-900/20! dark:even:bg-warning-900/35! dark:hover:bg-warning-900/50!"
>
<th scope="row">Hire a support lead</th>
<td>
<span
class="inline-flex items-center gap-1 px-2 py-0.5 whitespace-nowrap text-xs font-semibold text-warning-800 dark:text-warning-200 bg-white dark:bg-dominant-900 rounded-full ring-1 ring-inset ring-warning-300 dark:ring-warning-700"
>
<i aria-hidden="true" class="text-[10px] fa-solid fa-triangle-exclamation"> </i>At
risk</span
>
</td>
<td>Morgan Reyes</td>
<td>Nov 15</td>
</tr>
<tr
class="bg-danger-50! even:bg-danger-100! hover:bg-danger-200! dark:bg-danger-900/20! dark:even:bg-danger-900/35! dark:hover:bg-danger-900/50!"
>
<th scope="row">Fix failed payment retries</th>
<td>
<span
class="inline-flex items-center gap-1 px-2 py-0.5 whitespace-nowrap text-xs font-semibold text-danger-800 dark:text-danger-200 bg-white dark:bg-dominant-900 rounded-full ring-1 ring-inset ring-danger-300 dark:ring-danger-700"
>
<i aria-hidden="true" class="text-[10px] fa-solid fa-ban"> </i>Blocked</span
>
</td>
<td>Jordan Okafor</td>
<td>Nov 06</td>
</tr>
<tr
class="bg-danger-50! even:bg-danger-100! hover:bg-danger-200! dark:bg-danger-900/20! dark:even:bg-danger-900/35! dark:hover:bg-danger-900/50!"
>
<th scope="row">Restore the nightly backups</th>
<td>
<span
class="inline-flex items-center gap-1 px-2 py-0.5 whitespace-nowrap text-xs font-semibold text-danger-800 dark:text-danger-200 bg-white dark:bg-dominant-900 rounded-full ring-1 ring-inset ring-danger-300 dark:ring-danger-700"
>
<i aria-hidden="true" class="text-[10px] fa-solid fa-ban"> </i>Blocked</span
>
</td>
<td>Sam Patel</td>
<td>Nov 07</td>
</tr>
<tr
class="bg-danger-50! even:bg-danger-100! hover:bg-danger-200! dark:bg-danger-900/20! dark:even:bg-danger-900/35! dark:hover:bg-danger-900/50!"
>
<th scope="row">Resolve the login outage</th>
<td>
<span
class="inline-flex items-center gap-1 px-2 py-0.5 whitespace-nowrap text-xs font-semibold text-danger-800 dark:text-danger-200 bg-white dark:bg-dominant-900 rounded-full ring-1 ring-inset ring-danger-300 dark:ring-danger-700"
>
<i aria-hidden="true" class="text-[10px] fa-solid fa-ban"> </i>Blocked</span
>
</td>
<td>Riley Kim</td>
<td>Nov 08</td>
</tr>
</tbody>
</table>
</div>
</div>
<div>
<h3 class="mb-2 text-sm font-semibold text-dominant-900 dark:text-white">
Variant per column, striped and hover
</h3>
<div
id="table-2221-wrapper"
class="isolate overflow-auto rounded-xl border border-dominant-200 dark:border-dominant-700 focus-visible:ring-2 focus-visible:ring-primary-500 focus-visible:outline-none dark:focus-visible:ring-primary-400"
tabindex="0"
>
<table
id="table-2221"
class="w-full border-separate border-spacing-0 text-left text-sm [&_th]:px-4 [&_td]:px-4 [&_th]:whitespace-nowrap [&_td]:whitespace-nowrap [&_td]:text-dominant-700 dark:[&_td]:text-dominant-200 [&_tbody_th]:font-medium [&_tbody_th]:text-dominant-900 dark:[&_tbody_th]:text-white [&_thead_th]:text-xs [&_thead_th]:font-semibold [&_thead_th]:tracking-wide [&_thead_th]:uppercase [&_thead_tr:last-child>*]:border-b [&_thead_tr:last-child>*]:border-dominant-300 dark:[&_thead_tr:last-child>*]:border-dominant-600 [&_tbody>tr+tr>*]:border-t [&_tbody>tr>*]:border-dominant-200 dark:[&_tbody>tr>*]:border-dominant-700 [&_tfoot>tr>*]:border-t [&_tfoot>tr>*]:border-dominant-300 dark:[&_tfoot>tr>*]:border-dominant-600 [&_tfoot>tr>*]:font-semibold [&_thead_th]:bg-dominant-200 dark:[&_thead_th]:bg-dominant-700 [&_thead_th]:text-dominant-800 dark:[&_thead_th]:text-dominant-100 [&_thead_td]:bg-dominant-100 dark:[&_thead_td]:bg-dominant-800 [&_tfoot>tr>*]:bg-dominant-100 dark:[&_tfoot>tr>*]:bg-dominant-800 [&_tfoot>tr>*]:text-dominant-900 dark:[&_tfoot>tr>*]:text-white [&_.table-sticky-left]:sticky [&_.table-sticky-right]:sticky [&_tbody_.table-sticky-left]:z-10 [&_tbody_.table-sticky-right]:z-10 [&_tbody_.table-sticky-left]:bg-white dark:[&_tbody_.table-sticky-left]:bg-dominant-900 [&_tbody_.table-sticky-right]:bg-white dark:[&_tbody_.table-sticky-right]:bg-dominant-900 [&_thead_th.table-sticky-left]:z-30 [&_thead_th.table-sticky-right]:z-30 [&_thead_td.table-sticky-left]:z-10 [&_thead_td.table-sticky-right]:z-10 [&_th]:py-3 [&_td]:py-3 [&_tbody>tr:nth-child(even)]:bg-dominant-50 dark:[&_tbody>tr:nth-child(even)]:bg-dominant-800/40 [&_tbody>tr:nth-child(even)>.table-sticky-left]:bg-linear-to-r [&_tbody>tr:nth-child(even)>.table-sticky-right]:bg-linear-to-r [&_tbody>tr:nth-child(even)>.table-sticky-left]:from-dominant-50 dark:[&_tbody>tr:nth-child(even)>.table-sticky-left]:from-dominant-800/40 [&_tbody>tr:nth-child(even)>.table-sticky-right]:from-dominant-50 dark:[&_tbody>tr:nth-child(even)>.table-sticky-right]:from-dominant-800/40 [&_tbody>tr:nth-child(even)>.table-sticky-left]:to-dominant-50 dark:[&_tbody>tr:nth-child(even)>.table-sticky-left]:to-dominant-800/40 [&_tbody>tr:nth-child(even)>.table-sticky-right]:to-dominant-50 dark:[&_tbody>tr:nth-child(even)>.table-sticky-right]:to-dominant-800/40 [&_tbody>tr:hover]:bg-dominant-100 dark:[&_tbody>tr:hover]:bg-dominant-800 [&_tbody>tr:nth-child(even):hover]:bg-dominant-100 dark:[&_tbody>tr:nth-child(even):hover]:bg-dominant-800 [&_tbody>tr:hover>.table-sticky-left]:bg-linear-to-r [&_tbody>tr:hover>.table-sticky-right]:bg-linear-to-r [&_tbody>tr:hover>.table-sticky-left]:from-dominant-100 dark:[&_tbody>tr:hover>.table-sticky-left]:from-dominant-800 [&_tbody>tr:hover>.table-sticky-right]:from-dominant-100 dark:[&_tbody>tr:hover>.table-sticky-right]:from-dominant-800 [&_tbody>tr:hover>.table-sticky-left]:to-dominant-100 dark:[&_tbody>tr:hover>.table-sticky-left]:to-dominant-800 [&_tbody>tr:hover>.table-sticky-right]:to-dominant-100 dark:[&_tbody>tr:hover>.table-sticky-right]:to-dominant-800 [&_tbody>tr:nth-child(even):hover>.table-sticky-left]:bg-linear-to-r [&_tbody>tr:nth-child(even):hover>.table-sticky-right]:bg-linear-to-r [&_tbody>tr:nth-child(even):hover>.table-sticky-left]:from-dominant-100 dark:[&_tbody>tr:nth-child(even):hover>.table-sticky-left]:from-dominant-800 [&_tbody>tr:nth-child(even):hover>.table-sticky-right]:from-dominant-100 dark:[&_tbody>tr:nth-child(even):hover>.table-sticky-right]:from-dominant-800 [&_tbody>tr:nth-child(even):hover>.table-sticky-left]:to-dominant-100 dark:[&_tbody>tr:nth-child(even):hover>.table-sticky-left]:to-dominant-800 [&_tbody>tr:nth-child(even):hover>.table-sticky-right]:to-dominant-100 dark:[&_tbody>tr:nth-child(even):hover>.table-sticky-right]:to-dominant-800"
>
<thead>
<tr>
<th scope="col">Team</th>
<th
scope="col"
class="bg-primary-200! text-primary-900! dark:bg-primary-950! dark:text-primary-100!"
>
Planned
</th>
<th
scope="col"
class="bg-success-200! text-success-900! dark:bg-success-950! dark:text-success-100!"
>
Done
</th>
<th
scope="col"
class="bg-info-200! text-info-900! dark:bg-info-950! dark:text-info-100!"
>
In review
</th>
<th
scope="col"
class="bg-warning-200! text-warning-900! dark:bg-warning-950! dark:text-warning-100!"
>
At risk
</th>
<th
scope="col"
class="bg-danger-200! text-danger-900! dark:bg-danger-950! dark:text-danger-100!"
>
Blocked
</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">Frontend</th>
<td
class="bg-primary-50 in-[tr:nth-child(even)]:bg-primary-100 in-[tr:hover]:bg-primary-200 dark:bg-primary-900/20 dark:in-[tr:nth-child(even)]:bg-primary-900/35 dark:in-[tr:hover]:bg-primary-900/50"
>
8
</td>
<td
class="bg-success-50 in-[tr:nth-child(even)]:bg-success-100 in-[tr:hover]:bg-success-200 dark:bg-success-900/20 dark:in-[tr:nth-child(even)]:bg-success-900/35 dark:in-[tr:hover]:bg-success-900/50"
>
21
</td>
<td
class="bg-info-50 in-[tr:nth-child(even)]:bg-info-100 in-[tr:hover]:bg-info-200 dark:bg-info-900/20 dark:in-[tr:nth-child(even)]:bg-info-900/35 dark:in-[tr:hover]:bg-info-900/50"
>
4
</td>
<td
class="bg-warning-50 in-[tr:nth-child(even)]:bg-warning-100 in-[tr:hover]:bg-warning-200 dark:bg-warning-900/20 dark:in-[tr:nth-child(even)]:bg-warning-900/35 dark:in-[tr:hover]:bg-warning-900/50"
>
2
</td>
<td
class="bg-danger-50 in-[tr:nth-child(even)]:bg-danger-100 in-[tr:hover]:bg-danger-200 dark:bg-danger-900/20 dark:in-[tr:nth-child(even)]:bg-danger-900/35 dark:in-[tr:hover]:bg-danger-900/50"
>
1
</td>
</tr>
<tr>
<th scope="row">Backend</th>
<td
class="bg-primary-50 in-[tr:nth-child(even)]:bg-primary-100 in-[tr:hover]:bg-primary-200 dark:bg-primary-900/20 dark:in-[tr:nth-child(even)]:bg-primary-900/35 dark:in-[tr:hover]:bg-primary-900/50"
>
5
</td>
<td
class="bg-success-50 in-[tr:nth-child(even)]:bg-success-100 in-[tr:hover]:bg-success-200 dark:bg-success-900/20 dark:in-[tr:nth-child(even)]:bg-success-900/35 dark:in-[tr:hover]:bg-success-900/50"
>
34
</td>
<td
class="bg-info-50 in-[tr:nth-child(even)]:bg-info-100 in-[tr:hover]:bg-info-200 dark:bg-info-900/20 dark:in-[tr:nth-child(even)]:bg-info-900/35 dark:in-[tr:hover]:bg-info-900/50"
>
6
</td>
<td
class="bg-warning-50 in-[tr:nth-child(even)]:bg-warning-100 in-[tr:hover]:bg-warning-200 dark:bg-warning-900/20 dark:in-[tr:nth-child(even)]:bg-warning-900/35 dark:in-[tr:hover]:bg-warning-900/50"
>
3
</td>
<td
class="bg-danger-50 in-[tr:nth-child(even)]:bg-danger-100 in-[tr:hover]:bg-danger-200 dark:bg-danger-900/20 dark:in-[tr:nth-child(even)]:bg-danger-900/35 dark:in-[tr:hover]:bg-danger-900/50"
>
2
</td>
</tr>
<tr>
<th scope="row">Design</th>
<td
class="bg-primary-50 in-[tr:nth-child(even)]:bg-primary-100 in-[tr:hover]:bg-primary-200 dark:bg-primary-900/20 dark:in-[tr:nth-child(even)]:bg-primary-900/35 dark:in-[tr:hover]:bg-primary-900/50"
>
3
</td>
<td
class="bg-success-50 in-[tr:nth-child(even)]:bg-success-100 in-[tr:hover]:bg-success-200 dark:bg-success-900/20 dark:in-[tr:nth-child(even)]:bg-success-900/35 dark:in-[tr:hover]:bg-success-900/50"
>
12
</td>
<td
class="bg-info-50 in-[tr:nth-child(even)]:bg-info-100 in-[tr:hover]:bg-info-200 dark:bg-info-900/20 dark:in-[tr:nth-child(even)]:bg-info-900/35 dark:in-[tr:hover]:bg-info-900/50"
>
2
</td>
<td
class="bg-warning-50 in-[tr:nth-child(even)]:bg-warning-100 in-[tr:hover]:bg-warning-200 dark:bg-warning-900/20 dark:in-[tr:nth-child(even)]:bg-warning-900/35 dark:in-[tr:hover]:bg-warning-900/50"
>
1
</td>
<td
class="bg-danger-50 in-[tr:nth-child(even)]:bg-danger-100 in-[tr:hover]:bg-danger-200 dark:bg-danger-900/20 dark:in-[tr:nth-child(even)]:bg-danger-900/35 dark:in-[tr:hover]:bg-danger-900/50"
>
0
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
Sticky header and columns
sticky-header keeps the header in view while the table scrolls down; the wrapper is limited to max-h-96. .table-sticky-left and .table-sticky-right on every cell of a column keep that column in view while the table scrolls sideways; a script sets their offsets, so several columns can stick on one side without a fixed width.
Sticky header and footer
sticky-header keeps the header in view while the rows scroll, and sticky-footer keeps the total at the bottom; the wrapper is limited to max-h-96.
| Invoice | Customer | Date | Amount |
|---|---|---|---|
| INV-1042 | Acme Inc. | Oct 28, 2026 | $1,280.00 |
| INV-1041 | Globex Corporation | Oct 25, 2026 | $340.50 |
| INV-1040 | Initech | Oct 21, 2026 | $2,150.00 |
| INV-1039 | Hooli | Oct 18, 2026 | $89.99 |
| INV-1038 | Umbrella Group | Oct 12, 2026 | $760.25 |
| INV-1037 | Acme Inc. | Oct 09, 2026 | $1,280.00 |
| INV-1036 | Initech | Oct 03, 2026 | $415.00 |
| INV-1035 | Globex Corporation | Sep 29, 2026 | $99.00 |
| INV-1034 | Hooli | Sep 24, 2026 | $1,820.40 |
| INV-1033 | Umbrella Group | Sep 20, 2026 | $530.00 |
| INV-1032 | Acme Inc. | Sep 14, 2026 | $1,280.00 |
| INV-1031 | Initech | Sep 08, 2026 | $275.75 |
| Total | $9,862.24 | ||
Sticky first column
Scroll sideways and the first column stays in place: .table-sticky-left on every cell of that column, with an opaque background.
| Name | Department | Role | Location | Last active | Status | Actions | |
|---|---|---|---|---|---|---|---|
| Avery Chen | avery.chen@example.com | Engineering | Developer | Berlin | Today | Active |
|
| Morgan Reyes | morgan.reyes@example.com | Design | Designer | Lisbon | Yesterday | Pending |
|
| Jordan Okafor | jordan.okafor@example.com | Support | Agent | Lagos | 3 days ago | Suspended |
|
| Sam Patel | sam.patel@example.com | Finance | Analyst | Mumbai | Last week | Invited |
|
| Riley Kim | riley.kim@example.com | Engineering | Lead | Seoul | Today | Active |
|
Sticky actions column
The same on the right: .table-sticky-right keeps the row actions in reach however far the table is scrolled.
| Name | Department | Role | Location | Last active | Status | Actions | |
|---|---|---|---|---|---|---|---|
| Avery Chen | avery.chen@example.com | Engineering | Developer | Berlin | Today | Active |
|
| Morgan Reyes | morgan.reyes@example.com | Design | Designer | Lisbon | Yesterday | Pending |
|
| Jordan Okafor | jordan.okafor@example.com | Support | Agent | Lagos | 3 days ago | Suspended |
|
| Sam Patel | sam.patel@example.com | Finance | Analyst | Mumbai | Last week | Invited |
|
| Riley Kim | riley.kim@example.com | Engineering | Lead | Seoul | Today | Active |
|
Sticky column in the middle
Any column can stick, not only the first and the last: .table-sticky-left on the Role column pins it to the left edge once the table has scrolled past it.
| Name | Department | Role | Location | Last active | Status | Actions | |
|---|---|---|---|---|---|---|---|
| Avery Chen | avery.chen@example.com | Engineering | Developer | Berlin | Today | Active |
|
| Morgan Reyes | morgan.reyes@example.com | Design | Designer | Lisbon | Yesterday | Pending |
|
| Jordan Okafor | jordan.okafor@example.com | Support | Agent | Lagos | 3 days ago | Suspended |
|
| Sam Patel | sam.patel@example.com | Finance | Analyst | Mumbai | Last week | Invited |
|
| Riley Kim | riley.kim@example.com | Engineering | Lead | Seoul | Today | Active |
|
Several sticky columns
Two sticky columns on the same side line up: the script sets the offset of the second from the width of the first, so no fixed width is needed. The actions column sticks to the right at the same time.
| Name | Department | Role | Location | Last active | Status | Actions | |
|---|---|---|---|---|---|---|---|
| Avery Chen | avery.chen@example.com | Engineering | Developer | Berlin | Today | Active |
|
| Morgan Reyes | morgan.reyes@example.com | Design | Designer | Lisbon | Yesterday | Pending |
|
| Jordan Okafor | jordan.okafor@example.com | Support | Agent | Lagos | 3 days ago | Suspended |
|
| Sam Patel | sam.patel@example.com | Finance | Analyst | Mumbai | Last week | Invited |
|
| Riley Kim | riley.kim@example.com | Engineering | Lead | Seoul | Today | Active |
|
Sticky header and columns
Combine them: sticky-header with sticky columns. The corner cells are above both the header cells and the column cells.
| Name | Department | Role | Location | Last active | Status | Actions | |
|---|---|---|---|---|---|---|---|
| Avery Chen | avery.chen@example.com | Engineering | Developer | Berlin | Today | Active |
|
| Morgan Reyes | morgan.reyes@example.com | Design | Designer | Lisbon | Yesterday | Pending |
|
| Jordan Okafor | jordan.okafor@example.com | Support | Agent | Lagos | 3 days ago | Suspended |
|
| Sam Patel | sam.patel@example.com | Finance | Analyst | Mumbai | Last week | Invited |
|
| Riley Kim | riley.kim@example.com | Engineering | Lead | Seoul | Today | Active |
|
<div class="space-y-8">
<div>
<h3 class="mb-1 text-sm font-semibold text-dominant-900 dark:text-white">
Sticky header and footer
</h3>
<p class="mb-3 text-sm text-dominant-600 dark:text-dominant-300">
<code>sticky-header</code> keeps the header in view while the rows scroll, and
<code>sticky-footer</code> keeps the total at the bottom; the wrapper is limited to
<code>max-h-96</code>.
</p>
<div
id="table-1568-wrapper"
class="isolate overflow-auto rounded-xl border border-dominant-200 dark:border-dominant-700 focus-visible:ring-2 focus-visible:ring-primary-500 focus-visible:outline-none dark:focus-visible:ring-primary-400 max-h-96"
tabindex="0"
>
<table
id="table-1568"
class="w-full border-separate border-spacing-0 text-left text-sm [&_th]:px-4 [&_td]:px-4 [&_th]:whitespace-nowrap [&_td]:whitespace-nowrap [&_td]:text-dominant-700 dark:[&_td]:text-dominant-200 [&_tbody_th]:font-medium [&_tbody_th]:text-dominant-900 dark:[&_tbody_th]:text-white [&_thead_th]:text-xs [&_thead_th]:font-semibold [&_thead_th]:tracking-wide [&_thead_th]:uppercase [&_thead_tr:last-child>*]:border-b [&_thead_tr:last-child>*]:border-dominant-300 dark:[&_thead_tr:last-child>*]:border-dominant-600 [&_tbody>tr+tr>*]:border-t [&_tbody>tr>*]:border-dominant-200 dark:[&_tbody>tr>*]:border-dominant-700 [&_tfoot>tr>*]:border-t [&_tfoot>tr>*]:border-dominant-300 dark:[&_tfoot>tr>*]:border-dominant-600 [&_tfoot>tr>*]:font-semibold [&_thead_th]:bg-dominant-200 dark:[&_thead_th]:bg-dominant-700 [&_thead_th]:text-dominant-800 dark:[&_thead_th]:text-dominant-100 [&_thead_td]:bg-dominant-100 dark:[&_thead_td]:bg-dominant-800 [&_tfoot>tr>*]:bg-dominant-100 dark:[&_tfoot>tr>*]:bg-dominant-800 [&_tfoot>tr>*]:text-dominant-900 dark:[&_tfoot>tr>*]:text-white [&_.table-sticky-left]:sticky [&_.table-sticky-right]:sticky [&_tbody_.table-sticky-left]:z-10 [&_tbody_.table-sticky-right]:z-10 [&_tbody_.table-sticky-left]:bg-white dark:[&_tbody_.table-sticky-left]:bg-dominant-900 [&_tbody_.table-sticky-right]:bg-white dark:[&_tbody_.table-sticky-right]:bg-dominant-900 [&_thead_th.table-sticky-left]:z-30 [&_thead_th.table-sticky-right]:z-30 [&_thead_td.table-sticky-left]:z-10 [&_thead_td.table-sticky-right]:z-10 [&_th]:py-3 [&_td]:py-3 [&_thead]:sticky [&_thead]:top-0 [&_thead]:z-20 [&_tfoot>tr>*]:sticky [&_tfoot>tr>*]:bottom-0 [&_tfoot>tr>*]:z-20"
>
<thead>
<tr>
<th scope="col">Invoice</th>
<th scope="col">Customer</th>
<th scope="col">Date</th>
<th scope="col" class="text-right tabular-nums">Amount</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">INV-1042</th>
<td>Acme Inc.</td>
<td>Oct 28, 2026</td>
<td class="text-right tabular-nums">$1,280.00</td>
</tr>
<tr>
<th scope="row">INV-1041</th>
<td>Globex Corporation</td>
<td>Oct 25, 2026</td>
<td class="text-right tabular-nums">$340.50</td>
</tr>
<tr>
<th scope="row">INV-1040</th>
<td>Initech</td>
<td>Oct 21, 2026</td>
<td class="text-right tabular-nums">$2,150.00</td>
</tr>
<tr>
<th scope="row">INV-1039</th>
<td>Hooli</td>
<td>Oct 18, 2026</td>
<td class="text-right tabular-nums">$89.99</td>
</tr>
<tr>
<th scope="row">INV-1038</th>
<td>Umbrella Group</td>
<td>Oct 12, 2026</td>
<td class="text-right tabular-nums">$760.25</td>
</tr>
<tr>
<th scope="row">INV-1037</th>
<td>Acme Inc.</td>
<td>Oct 09, 2026</td>
<td class="text-right tabular-nums">$1,280.00</td>
</tr>
<tr>
<th scope="row">INV-1036</th>
<td>Initech</td>
<td>Oct 03, 2026</td>
<td class="text-right tabular-nums">$415.00</td>
</tr>
<tr>
<th scope="row">INV-1035</th>
<td>Globex Corporation</td>
<td>Sep 29, 2026</td>
<td class="text-right tabular-nums">$99.00</td>
</tr>
<tr>
<th scope="row">INV-1034</th>
<td>Hooli</td>
<td>Sep 24, 2026</td>
<td class="text-right tabular-nums">$1,820.40</td>
</tr>
<tr>
<th scope="row">INV-1033</th>
<td>Umbrella Group</td>
<td>Sep 20, 2026</td>
<td class="text-right tabular-nums">$530.00</td>
</tr>
<tr>
<th scope="row">INV-1032</th>
<td>Acme Inc.</td>
<td>Sep 14, 2026</td>
<td class="text-right tabular-nums">$1,280.00</td>
</tr>
<tr>
<th scope="row">INV-1031</th>
<td>Initech</td>
<td>Sep 08, 2026</td>
<td class="text-right tabular-nums">$275.75</td>
</tr>
</tbody>
<tfoot>
<tr>
<th scope="row" colspan="3">Total</th>
<td class="text-right tabular-nums">$9,862.24</td>
</tr>
</tfoot>
</table>
</div>
</div>
<div>
<h3 class="mb-1 text-sm font-semibold text-dominant-900 dark:text-white">
Sticky first column
</h3>
<p class="mb-3 text-sm text-dominant-600 dark:text-dominant-300">
Scroll sideways and the first column stays in place: <code>.table-sticky-left</code> on every
cell of that column, with an opaque background.
</p>
<div
id="table-2190-wrapper"
class="isolate overflow-auto rounded-xl border border-dominant-200 dark:border-dominant-700 focus-visible:ring-2 focus-visible:ring-primary-500 focus-visible:outline-none dark:focus-visible:ring-primary-400"
tabindex="0"
>
<table
id="table-2190"
class="w-full border-separate border-spacing-0 text-left text-sm [&_th]:px-4 [&_td]:px-4 [&_th]:whitespace-nowrap [&_td]:whitespace-nowrap [&_td]:text-dominant-700 dark:[&_td]:text-dominant-200 [&_tbody_th]:font-medium [&_tbody_th]:text-dominant-900 dark:[&_tbody_th]:text-white [&_thead_th]:text-xs [&_thead_th]:font-semibold [&_thead_th]:tracking-wide [&_thead_th]:uppercase [&_thead_tr:last-child>*]:border-b [&_thead_tr:last-child>*]:border-dominant-300 dark:[&_thead_tr:last-child>*]:border-dominant-600 [&_tbody>tr+tr>*]:border-t [&_tbody>tr>*]:border-dominant-200 dark:[&_tbody>tr>*]:border-dominant-700 [&_tfoot>tr>*]:border-t [&_tfoot>tr>*]:border-dominant-300 dark:[&_tfoot>tr>*]:border-dominant-600 [&_tfoot>tr>*]:font-semibold [&_thead_th]:bg-dominant-200 dark:[&_thead_th]:bg-dominant-700 [&_thead_th]:text-dominant-800 dark:[&_thead_th]:text-dominant-100 [&_thead_td]:bg-dominant-100 dark:[&_thead_td]:bg-dominant-800 [&_tfoot>tr>*]:bg-dominant-100 dark:[&_tfoot>tr>*]:bg-dominant-800 [&_tfoot>tr>*]:text-dominant-900 dark:[&_tfoot>tr>*]:text-white [&_.table-sticky-left]:sticky [&_.table-sticky-right]:sticky [&_tbody_.table-sticky-left]:z-10 [&_tbody_.table-sticky-right]:z-10 [&_tbody_.table-sticky-left]:bg-white dark:[&_tbody_.table-sticky-left]:bg-dominant-900 [&_tbody_.table-sticky-right]:bg-white dark:[&_tbody_.table-sticky-right]:bg-dominant-900 [&_thead_th.table-sticky-left]:z-30 [&_thead_th.table-sticky-right]:z-30 [&_thead_td.table-sticky-left]:z-10 [&_thead_td.table-sticky-right]:z-10 [&_th]:py-2 [&_td]:py-2"
>
<thead>
<tr>
<th scope="col" class="table-sticky-left">Name</th>
<th scope="col">Email</th>
<th scope="col">Department</th>
<th scope="col">Role</th>
<th scope="col">Location</th>
<th scope="col">Last active</th>
<th scope="col">Status</th>
<th scope="col">Actions</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row" class="table-sticky-left">Avery Chen</th>
<td>avery.chen@example.com</td>
<td>Engineering</td>
<td>Developer</td>
<td>Berlin</td>
<td>Today</td>
<td>
<span
class="inline-flex items-center gap-1 px-2 py-0.5 whitespace-nowrap text-xs font-semibold text-success-800 dark:text-success-300 bg-success-100 dark:bg-success-900/50 rounded-full"
>
<i aria-hidden="true" class="text-[10px] fa-solid fa-check"> </i>Active</span
>
</td>
<td>
<div class="flex items-center gap-1">
<button
id="button-2205"
type="button"
aria-label="Edit Avery Chen"
class="cursor-pointer transition-colors inline-flex items-center justify-center rounded-lg font-semibold group peer focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 dark:focus-visible:ring-offset-dominant-950 bg-dominant-100 dark:bg-dominant-800 text-dominant-700 dark:text-dominant-300 not-disabled:hover:bg-dominant-200 dark:not-disabled:hover:bg-dominant-700 not-disabled:active:bg-dominant-300 focus-visible:ring-primary-700 dark:focus-visible:ring-primary-400 size-8 p-0 text-sm"
>
<i aria-hidden="true" class="fa-solid fa-pen"></i>
</button>
<button
id="button-2207"
type="button"
aria-label="Delete Avery Chen"
class="cursor-pointer transition-colors inline-flex items-center justify-center rounded-lg font-semibold group peer focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 dark:focus-visible:ring-offset-dominant-950 bg-dominant-100 dark:bg-dominant-800 text-dominant-700 dark:text-dominant-300 not-disabled:hover:bg-dominant-200 dark:not-disabled:hover:bg-dominant-700 not-disabled:active:bg-dominant-300 focus-visible:ring-primary-700 dark:focus-visible:ring-primary-400 size-8 p-0 text-sm"
>
<i aria-hidden="true" class="fa-solid fa-trash"></i>
</button>
</div>
</td>
</tr>
<tr>
<th scope="row" class="table-sticky-left">Morgan Reyes</th>
<td>morgan.reyes@example.com</td>
<td>Design</td>
<td>Designer</td>
<td>Lisbon</td>
<td>Yesterday</td>
<td>
<span
class="inline-flex items-center gap-1 px-2 py-0.5 whitespace-nowrap text-xs font-semibold text-warning-800 dark:text-warning-300 bg-warning-100 dark:bg-warning-900/50 rounded-full"
>
<i aria-hidden="true" class="text-[10px] fa-solid fa-clock"> </i>Pending</span
>
</td>
<td>
<div class="flex items-center gap-1">
<button
id="button-2214"
type="button"
aria-label="Edit Morgan Reyes"
class="cursor-pointer transition-colors inline-flex items-center justify-center rounded-lg font-semibold group peer focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 dark:focus-visible:ring-offset-dominant-950 bg-dominant-100 dark:bg-dominant-800 text-dominant-700 dark:text-dominant-300 not-disabled:hover:bg-dominant-200 dark:not-disabled:hover:bg-dominant-700 not-disabled:active:bg-dominant-300 focus-visible:ring-primary-700 dark:focus-visible:ring-primary-400 size-8 p-0 text-sm"
>
<i aria-hidden="true" class="fa-solid fa-pen"></i>
</button>
<button
id="button-2215"
type="button"
aria-label="Delete Morgan Reyes"
class="cursor-pointer transition-colors inline-flex items-center justify-center rounded-lg font-semibold group peer focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 dark:focus-visible:ring-offset-dominant-950 bg-dominant-100 dark:bg-dominant-800 text-dominant-700 dark:text-dominant-300 not-disabled:hover:bg-dominant-200 dark:not-disabled:hover:bg-dominant-700 not-disabled:active:bg-dominant-300 focus-visible:ring-primary-700 dark:focus-visible:ring-primary-400 size-8 p-0 text-sm"
>
<i aria-hidden="true" class="fa-solid fa-trash"></i>
</button>
</div>
</td>
</tr>
<tr>
<th scope="row" class="table-sticky-left">Jordan Okafor</th>
<td>jordan.okafor@example.com</td>
<td>Support</td>
<td>Agent</td>
<td>Lagos</td>
<td>3 days ago</td>
<td>
<span
class="inline-flex items-center gap-1 px-2 py-0.5 whitespace-nowrap text-xs font-semibold text-danger-800 dark:text-danger-300 bg-danger-100 dark:bg-danger-900/50 rounded-full"
>
<i aria-hidden="true" class="text-[10px] fa-solid fa-ban"> </i>Suspended</span
>
</td>
<td>
<div class="flex items-center gap-1">
<button
id="button-2218"
type="button"
aria-label="Edit Jordan Okafor"
class="cursor-pointer transition-colors inline-flex items-center justify-center rounded-lg font-semibold group peer focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 dark:focus-visible:ring-offset-dominant-950 bg-dominant-100 dark:bg-dominant-800 text-dominant-700 dark:text-dominant-300 not-disabled:hover:bg-dominant-200 dark:not-disabled:hover:bg-dominant-700 not-disabled:active:bg-dominant-300 focus-visible:ring-primary-700 dark:focus-visible:ring-primary-400 size-8 p-0 text-sm"
>
<i aria-hidden="true" class="fa-solid fa-pen"></i>
</button>
<button
id="button-2219"
type="button"
aria-label="Delete Jordan Okafor"
class="cursor-pointer transition-colors inline-flex items-center justify-center rounded-lg font-semibold group peer focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 dark:focus-visible:ring-offset-dominant-950 bg-dominant-100 dark:bg-dominant-800 text-dominant-700 dark:text-dominant-300 not-disabled:hover:bg-dominant-200 dark:not-disabled:hover:bg-dominant-700 not-disabled:active:bg-dominant-300 focus-visible:ring-primary-700 dark:focus-visible:ring-primary-400 size-8 p-0 text-sm"
>
<i aria-hidden="true" class="fa-solid fa-trash"></i>
</button>
</div>
</td>
</tr>
<tr>
<th scope="row" class="table-sticky-left">Sam Patel</th>
<td>sam.patel@example.com</td>
<td>Finance</td>
<td>Analyst</td>
<td>Mumbai</td>
<td>Last week</td>
<td>
<span
class="inline-flex items-center gap-1 px-2 py-0.5 whitespace-nowrap text-xs font-semibold text-info-800 dark:text-info-300 bg-info-100 dark:bg-info-900/50 rounded-full"
>
<i aria-hidden="true" class="text-[10px] fa-solid fa-envelope"> </i>Invited</span
>
</td>
<td>
<div class="flex items-center gap-1">
<button
id="button-2222"
type="button"
aria-label="Edit Sam Patel"
class="cursor-pointer transition-colors inline-flex items-center justify-center rounded-lg font-semibold group peer focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 dark:focus-visible:ring-offset-dominant-950 bg-dominant-100 dark:bg-dominant-800 text-dominant-700 dark:text-dominant-300 not-disabled:hover:bg-dominant-200 dark:not-disabled:hover:bg-dominant-700 not-disabled:active:bg-dominant-300 focus-visible:ring-primary-700 dark:focus-visible:ring-primary-400 size-8 p-0 text-sm"
>
<i aria-hidden="true" class="fa-solid fa-pen"></i>
</button>
<button
id="button-2223"
type="button"
aria-label="Delete Sam Patel"
class="cursor-pointer transition-colors inline-flex items-center justify-center rounded-lg font-semibold group peer focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 dark:focus-visible:ring-offset-dominant-950 bg-dominant-100 dark:bg-dominant-800 text-dominant-700 dark:text-dominant-300 not-disabled:hover:bg-dominant-200 dark:not-disabled:hover:bg-dominant-700 not-disabled:active:bg-dominant-300 focus-visible:ring-primary-700 dark:focus-visible:ring-primary-400 size-8 p-0 text-sm"
>
<i aria-hidden="true" class="fa-solid fa-trash"></i>
</button>
</div>
</td>
</tr>
<tr>
<th scope="row" class="table-sticky-left">Riley Kim</th>
<td>riley.kim@example.com</td>
<td>Engineering</td>
<td>Lead</td>
<td>Seoul</td>
<td>Today</td>
<td>
<span
class="inline-flex items-center gap-1 px-2 py-0.5 whitespace-nowrap text-xs font-semibold text-success-800 dark:text-success-300 bg-success-100 dark:bg-success-900/50 rounded-full"
>
<i aria-hidden="true" class="text-[10px] fa-solid fa-check"> </i>Active</span
>
</td>
<td>
<div class="flex items-center gap-1">
<button
id="button-2224"
type="button"
aria-label="Edit Riley Kim"
class="cursor-pointer transition-colors inline-flex items-center justify-center rounded-lg font-semibold group peer focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 dark:focus-visible:ring-offset-dominant-950 bg-dominant-100 dark:bg-dominant-800 text-dominant-700 dark:text-dominant-300 not-disabled:hover:bg-dominant-200 dark:not-disabled:hover:bg-dominant-700 not-disabled:active:bg-dominant-300 focus-visible:ring-primary-700 dark:focus-visible:ring-primary-400 size-8 p-0 text-sm"
>
<i aria-hidden="true" class="fa-solid fa-pen"></i>
</button>
<button
id="button-2225"
type="button"
aria-label="Delete Riley Kim"
class="cursor-pointer transition-colors inline-flex items-center justify-center rounded-lg font-semibold group peer focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 dark:focus-visible:ring-offset-dominant-950 bg-dominant-100 dark:bg-dominant-800 text-dominant-700 dark:text-dominant-300 not-disabled:hover:bg-dominant-200 dark:not-disabled:hover:bg-dominant-700 not-disabled:active:bg-dominant-300 focus-visible:ring-primary-700 dark:focus-visible:ring-primary-400 size-8 p-0 text-sm"
>
<i aria-hidden="true" class="fa-solid fa-trash"></i>
</button>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div>
<h3 class="mb-1 text-sm font-semibold text-dominant-900 dark:text-white">
Sticky actions column
</h3>
<p class="mb-3 text-sm text-dominant-600 dark:text-dominant-300">
The same on the right: <code>.table-sticky-right</code> keeps the row actions in reach however
far the table is scrolled.
</p>
<div
id="table-2226-wrapper"
class="isolate overflow-auto rounded-xl border border-dominant-200 dark:border-dominant-700 focus-visible:ring-2 focus-visible:ring-primary-500 focus-visible:outline-none dark:focus-visible:ring-primary-400"
tabindex="0"
>
<table
id="table-2226"
class="w-full border-separate border-spacing-0 text-left text-sm [&_th]:px-4 [&_td]:px-4 [&_th]:whitespace-nowrap [&_td]:whitespace-nowrap [&_td]:text-dominant-700 dark:[&_td]:text-dominant-200 [&_tbody_th]:font-medium [&_tbody_th]:text-dominant-900 dark:[&_tbody_th]:text-white [&_thead_th]:text-xs [&_thead_th]:font-semibold [&_thead_th]:tracking-wide [&_thead_th]:uppercase [&_thead_tr:last-child>*]:border-b [&_thead_tr:last-child>*]:border-dominant-300 dark:[&_thead_tr:last-child>*]:border-dominant-600 [&_tbody>tr+tr>*]:border-t [&_tbody>tr>*]:border-dominant-200 dark:[&_tbody>tr>*]:border-dominant-700 [&_tfoot>tr>*]:border-t [&_tfoot>tr>*]:border-dominant-300 dark:[&_tfoot>tr>*]:border-dominant-600 [&_tfoot>tr>*]:font-semibold [&_thead_th]:bg-dominant-200 dark:[&_thead_th]:bg-dominant-700 [&_thead_th]:text-dominant-800 dark:[&_thead_th]:text-dominant-100 [&_thead_td]:bg-dominant-100 dark:[&_thead_td]:bg-dominant-800 [&_tfoot>tr>*]:bg-dominant-100 dark:[&_tfoot>tr>*]:bg-dominant-800 [&_tfoot>tr>*]:text-dominant-900 dark:[&_tfoot>tr>*]:text-white [&_.table-sticky-left]:sticky [&_.table-sticky-right]:sticky [&_tbody_.table-sticky-left]:z-10 [&_tbody_.table-sticky-right]:z-10 [&_tbody_.table-sticky-left]:bg-white dark:[&_tbody_.table-sticky-left]:bg-dominant-900 [&_tbody_.table-sticky-right]:bg-white dark:[&_tbody_.table-sticky-right]:bg-dominant-900 [&_thead_th.table-sticky-left]:z-30 [&_thead_th.table-sticky-right]:z-30 [&_thead_td.table-sticky-left]:z-10 [&_thead_td.table-sticky-right]:z-10 [&_th]:py-2 [&_td]:py-2"
>
<thead>
<tr>
<th scope="col">Name</th>
<th scope="col">Email</th>
<th scope="col">Department</th>
<th scope="col">Role</th>
<th scope="col">Location</th>
<th scope="col">Last active</th>
<th scope="col">Status</th>
<th scope="col" class="table-sticky-right">Actions</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">Avery Chen</th>
<td>avery.chen@example.com</td>
<td>Engineering</td>
<td>Developer</td>
<td>Berlin</td>
<td>Today</td>
<td>
<span
class="inline-flex items-center gap-1 px-2 py-0.5 whitespace-nowrap text-xs font-semibold text-success-800 dark:text-success-300 bg-success-100 dark:bg-success-900/50 rounded-full"
>
<i aria-hidden="true" class="text-[10px] fa-solid fa-check"> </i>Active</span
>
</td>
<td class="table-sticky-right">
<div class="flex items-center gap-1">
<button
id="button-2227"
type="button"
aria-label="Edit Avery Chen"
class="cursor-pointer transition-colors inline-flex items-center justify-center rounded-lg font-semibold group peer focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 dark:focus-visible:ring-offset-dominant-950 bg-dominant-100 dark:bg-dominant-800 text-dominant-700 dark:text-dominant-300 not-disabled:hover:bg-dominant-200 dark:not-disabled:hover:bg-dominant-700 not-disabled:active:bg-dominant-300 focus-visible:ring-primary-700 dark:focus-visible:ring-primary-400 size-8 p-0 text-sm"
>
<i aria-hidden="true" class="fa-solid fa-pen"></i>
</button>
<button
id="button-2228"
type="button"
aria-label="Delete Avery Chen"
class="cursor-pointer transition-colors inline-flex items-center justify-center rounded-lg font-semibold group peer focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 dark:focus-visible:ring-offset-dominant-950 bg-dominant-100 dark:bg-dominant-800 text-dominant-700 dark:text-dominant-300 not-disabled:hover:bg-dominant-200 dark:not-disabled:hover:bg-dominant-700 not-disabled:active:bg-dominant-300 focus-visible:ring-primary-700 dark:focus-visible:ring-primary-400 size-8 p-0 text-sm"
>
<i aria-hidden="true" class="fa-solid fa-trash"></i>
</button>
</div>
</td>
</tr>
<tr>
<th scope="row">Morgan Reyes</th>
<td>morgan.reyes@example.com</td>
<td>Design</td>
<td>Designer</td>
<td>Lisbon</td>
<td>Yesterday</td>
<td>
<span
class="inline-flex items-center gap-1 px-2 py-0.5 whitespace-nowrap text-xs font-semibold text-warning-800 dark:text-warning-300 bg-warning-100 dark:bg-warning-900/50 rounded-full"
>
<i aria-hidden="true" class="text-[10px] fa-solid fa-clock"> </i>Pending</span
>
</td>
<td class="table-sticky-right">
<div class="flex items-center gap-1">
<button
id="button-2229"
type="button"
aria-label="Edit Morgan Reyes"
class="cursor-pointer transition-colors inline-flex items-center justify-center rounded-lg font-semibold group peer focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 dark:focus-visible:ring-offset-dominant-950 bg-dominant-100 dark:bg-dominant-800 text-dominant-700 dark:text-dominant-300 not-disabled:hover:bg-dominant-200 dark:not-disabled:hover:bg-dominant-700 not-disabled:active:bg-dominant-300 focus-visible:ring-primary-700 dark:focus-visible:ring-primary-400 size-8 p-0 text-sm"
>
<i aria-hidden="true" class="fa-solid fa-pen"></i>
</button>
<button
id="button-2230"
type="button"
aria-label="Delete Morgan Reyes"
class="cursor-pointer transition-colors inline-flex items-center justify-center rounded-lg font-semibold group peer focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 dark:focus-visible:ring-offset-dominant-950 bg-dominant-100 dark:bg-dominant-800 text-dominant-700 dark:text-dominant-300 not-disabled:hover:bg-dominant-200 dark:not-disabled:hover:bg-dominant-700 not-disabled:active:bg-dominant-300 focus-visible:ring-primary-700 dark:focus-visible:ring-primary-400 size-8 p-0 text-sm"
>
<i aria-hidden="true" class="fa-solid fa-trash"></i>
</button>
</div>
</td>
</tr>
<tr>
<th scope="row">Jordan Okafor</th>
<td>jordan.okafor@example.com</td>
<td>Support</td>
<td>Agent</td>
<td>Lagos</td>
<td>3 days ago</td>
<td>
<span
class="inline-flex items-center gap-1 px-2 py-0.5 whitespace-nowrap text-xs font-semibold text-danger-800 dark:text-danger-300 bg-danger-100 dark:bg-danger-900/50 rounded-full"
>
<i aria-hidden="true" class="text-[10px] fa-solid fa-ban"> </i>Suspended</span
>
</td>
<td class="table-sticky-right">
<div class="flex items-center gap-1">
<button
id="button-2231"
type="button"
aria-label="Edit Jordan Okafor"
class="cursor-pointer transition-colors inline-flex items-center justify-center rounded-lg font-semibold group peer focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 dark:focus-visible:ring-offset-dominant-950 bg-dominant-100 dark:bg-dominant-800 text-dominant-700 dark:text-dominant-300 not-disabled:hover:bg-dominant-200 dark:not-disabled:hover:bg-dominant-700 not-disabled:active:bg-dominant-300 focus-visible:ring-primary-700 dark:focus-visible:ring-primary-400 size-8 p-0 text-sm"
>
<i aria-hidden="true" class="fa-solid fa-pen"></i>
</button>
<button
id="button-2232"
type="button"
aria-label="Delete Jordan Okafor"
class="cursor-pointer transition-colors inline-flex items-center justify-center rounded-lg font-semibold group peer focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 dark:focus-visible:ring-offset-dominant-950 bg-dominant-100 dark:bg-dominant-800 text-dominant-700 dark:text-dominant-300 not-disabled:hover:bg-dominant-200 dark:not-disabled:hover:bg-dominant-700 not-disabled:active:bg-dominant-300 focus-visible:ring-primary-700 dark:focus-visible:ring-primary-400 size-8 p-0 text-sm"
>
<i aria-hidden="true" class="fa-solid fa-trash"></i>
</button>
</div>
</td>
</tr>
<tr>
<th scope="row">Sam Patel</th>
<td>sam.patel@example.com</td>
<td>Finance</td>
<td>Analyst</td>
<td>Mumbai</td>
<td>Last week</td>
<td>
<span
class="inline-flex items-center gap-1 px-2 py-0.5 whitespace-nowrap text-xs font-semibold text-info-800 dark:text-info-300 bg-info-100 dark:bg-info-900/50 rounded-full"
>
<i aria-hidden="true" class="text-[10px] fa-solid fa-envelope"> </i>Invited</span
>
</td>
<td class="table-sticky-right">
<div class="flex items-center gap-1">
<button
id="button-2233"
type="button"
aria-label="Edit Sam Patel"
class="cursor-pointer transition-colors inline-flex items-center justify-center rounded-lg font-semibold group peer focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 dark:focus-visible:ring-offset-dominant-950 bg-dominant-100 dark:bg-dominant-800 text-dominant-700 dark:text-dominant-300 not-disabled:hover:bg-dominant-200 dark:not-disabled:hover:bg-dominant-700 not-disabled:active:bg-dominant-300 focus-visible:ring-primary-700 dark:focus-visible:ring-primary-400 size-8 p-0 text-sm"
>
<i aria-hidden="true" class="fa-solid fa-pen"></i>
</button>
<button
id="button-2234"
type="button"
aria-label="Delete Sam Patel"
class="cursor-pointer transition-colors inline-flex items-center justify-center rounded-lg font-semibold group peer focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 dark:focus-visible:ring-offset-dominant-950 bg-dominant-100 dark:bg-dominant-800 text-dominant-700 dark:text-dominant-300 not-disabled:hover:bg-dominant-200 dark:not-disabled:hover:bg-dominant-700 not-disabled:active:bg-dominant-300 focus-visible:ring-primary-700 dark:focus-visible:ring-primary-400 size-8 p-0 text-sm"
>
<i aria-hidden="true" class="fa-solid fa-trash"></i>
</button>
</div>
</td>
</tr>
<tr>
<th scope="row">Riley Kim</th>
<td>riley.kim@example.com</td>
<td>Engineering</td>
<td>Lead</td>
<td>Seoul</td>
<td>Today</td>
<td>
<span
class="inline-flex items-center gap-1 px-2 py-0.5 whitespace-nowrap text-xs font-semibold text-success-800 dark:text-success-300 bg-success-100 dark:bg-success-900/50 rounded-full"
>
<i aria-hidden="true" class="text-[10px] fa-solid fa-check"> </i>Active</span
>
</td>
<td class="table-sticky-right">
<div class="flex items-center gap-1">
<button
id="button-2235"
type="button"
aria-label="Edit Riley Kim"
class="cursor-pointer transition-colors inline-flex items-center justify-center rounded-lg font-semibold group peer focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 dark:focus-visible:ring-offset-dominant-950 bg-dominant-100 dark:bg-dominant-800 text-dominant-700 dark:text-dominant-300 not-disabled:hover:bg-dominant-200 dark:not-disabled:hover:bg-dominant-700 not-disabled:active:bg-dominant-300 focus-visible:ring-primary-700 dark:focus-visible:ring-primary-400 size-8 p-0 text-sm"
>
<i aria-hidden="true" class="fa-solid fa-pen"></i>
</button>
<button
id="button-2236"
type="button"
aria-label="Delete Riley Kim"
class="cursor-pointer transition-colors inline-flex items-center justify-center rounded-lg font-semibold group peer focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 dark:focus-visible:ring-offset-dominant-950 bg-dominant-100 dark:bg-dominant-800 text-dominant-700 dark:text-dominant-300 not-disabled:hover:bg-dominant-200 dark:not-disabled:hover:bg-dominant-700 not-disabled:active:bg-dominant-300 focus-visible:ring-primary-700 dark:focus-visible:ring-primary-400 size-8 p-0 text-sm"
>
<i aria-hidden="true" class="fa-solid fa-trash"></i>
</button>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div>
<h3 class="mb-1 text-sm font-semibold text-dominant-900 dark:text-white">
Sticky column in the middle
</h3>
<p class="mb-3 text-sm text-dominant-600 dark:text-dominant-300">
Any column can stick, not only the first and the last: <code>.table-sticky-left</code> on the
Role column pins it to the left edge once the table has scrolled past it.
</p>
<div
id="table-2237-wrapper"
class="isolate overflow-auto rounded-xl border border-dominant-200 dark:border-dominant-700 focus-visible:ring-2 focus-visible:ring-primary-500 focus-visible:outline-none dark:focus-visible:ring-primary-400"
tabindex="0"
>
<table
id="table-2237"
class="w-full border-separate border-spacing-0 text-left text-sm [&_th]:px-4 [&_td]:px-4 [&_th]:whitespace-nowrap [&_td]:whitespace-nowrap [&_td]:text-dominant-700 dark:[&_td]:text-dominant-200 [&_tbody_th]:font-medium [&_tbody_th]:text-dominant-900 dark:[&_tbody_th]:text-white [&_thead_th]:text-xs [&_thead_th]:font-semibold [&_thead_th]:tracking-wide [&_thead_th]:uppercase [&_thead_tr:last-child>*]:border-b [&_thead_tr:last-child>*]:border-dominant-300 dark:[&_thead_tr:last-child>*]:border-dominant-600 [&_tbody>tr+tr>*]:border-t [&_tbody>tr>*]:border-dominant-200 dark:[&_tbody>tr>*]:border-dominant-700 [&_tfoot>tr>*]:border-t [&_tfoot>tr>*]:border-dominant-300 dark:[&_tfoot>tr>*]:border-dominant-600 [&_tfoot>tr>*]:font-semibold [&_thead_th]:bg-dominant-200 dark:[&_thead_th]:bg-dominant-700 [&_thead_th]:text-dominant-800 dark:[&_thead_th]:text-dominant-100 [&_thead_td]:bg-dominant-100 dark:[&_thead_td]:bg-dominant-800 [&_tfoot>tr>*]:bg-dominant-100 dark:[&_tfoot>tr>*]:bg-dominant-800 [&_tfoot>tr>*]:text-dominant-900 dark:[&_tfoot>tr>*]:text-white [&_.table-sticky-left]:sticky [&_.table-sticky-right]:sticky [&_tbody_.table-sticky-left]:z-10 [&_tbody_.table-sticky-right]:z-10 [&_tbody_.table-sticky-left]:bg-white dark:[&_tbody_.table-sticky-left]:bg-dominant-900 [&_tbody_.table-sticky-right]:bg-white dark:[&_tbody_.table-sticky-right]:bg-dominant-900 [&_thead_th.table-sticky-left]:z-30 [&_thead_th.table-sticky-right]:z-30 [&_thead_td.table-sticky-left]:z-10 [&_thead_td.table-sticky-right]:z-10 [&_th]:py-2 [&_td]:py-2"
>
<thead>
<tr>
<th scope="col">Name</th>
<th scope="col">Email</th>
<th scope="col">Department</th>
<th scope="col" class="table-sticky-left">Role</th>
<th scope="col">Location</th>
<th scope="col">Last active</th>
<th scope="col">Status</th>
<th scope="col">Actions</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">Avery Chen</th>
<td>avery.chen@example.com</td>
<td>Engineering</td>
<td class="table-sticky-left">Developer</td>
<td>Berlin</td>
<td>Today</td>
<td>
<span
class="inline-flex items-center gap-1 px-2 py-0.5 whitespace-nowrap text-xs font-semibold text-success-800 dark:text-success-300 bg-success-100 dark:bg-success-900/50 rounded-full"
>
<i aria-hidden="true" class="text-[10px] fa-solid fa-check"> </i>Active</span
>
</td>
<td>
<div class="flex items-center gap-1">
<button
id="button-2238"
type="button"
aria-label="Edit Avery Chen"
class="cursor-pointer transition-colors inline-flex items-center justify-center rounded-lg font-semibold group peer focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 dark:focus-visible:ring-offset-dominant-950 bg-dominant-100 dark:bg-dominant-800 text-dominant-700 dark:text-dominant-300 not-disabled:hover:bg-dominant-200 dark:not-disabled:hover:bg-dominant-700 not-disabled:active:bg-dominant-300 focus-visible:ring-primary-700 dark:focus-visible:ring-primary-400 size-8 p-0 text-sm"
>
<i aria-hidden="true" class="fa-solid fa-pen"></i>
</button>
<button
id="button-2239"
type="button"
aria-label="Delete Avery Chen"
class="cursor-pointer transition-colors inline-flex items-center justify-center rounded-lg font-semibold group peer focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 dark:focus-visible:ring-offset-dominant-950 bg-dominant-100 dark:bg-dominant-800 text-dominant-700 dark:text-dominant-300 not-disabled:hover:bg-dominant-200 dark:not-disabled:hover:bg-dominant-700 not-disabled:active:bg-dominant-300 focus-visible:ring-primary-700 dark:focus-visible:ring-primary-400 size-8 p-0 text-sm"
>
<i aria-hidden="true" class="fa-solid fa-trash"></i>
</button>
</div>
</td>
</tr>
<tr>
<th scope="row">Morgan Reyes</th>
<td>morgan.reyes@example.com</td>
<td>Design</td>
<td class="table-sticky-left">Designer</td>
<td>Lisbon</td>
<td>Yesterday</td>
<td>
<span
class="inline-flex items-center gap-1 px-2 py-0.5 whitespace-nowrap text-xs font-semibold text-warning-800 dark:text-warning-300 bg-warning-100 dark:bg-warning-900/50 rounded-full"
>
<i aria-hidden="true" class="text-[10px] fa-solid fa-clock"> </i>Pending</span
>
</td>
<td>
<div class="flex items-center gap-1">
<button
id="button-2240"
type="button"
aria-label="Edit Morgan Reyes"
class="cursor-pointer transition-colors inline-flex items-center justify-center rounded-lg font-semibold group peer focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 dark:focus-visible:ring-offset-dominant-950 bg-dominant-100 dark:bg-dominant-800 text-dominant-700 dark:text-dominant-300 not-disabled:hover:bg-dominant-200 dark:not-disabled:hover:bg-dominant-700 not-disabled:active:bg-dominant-300 focus-visible:ring-primary-700 dark:focus-visible:ring-primary-400 size-8 p-0 text-sm"
>
<i aria-hidden="true" class="fa-solid fa-pen"></i>
</button>
<button
id="button-2241"
type="button"
aria-label="Delete Morgan Reyes"
class="cursor-pointer transition-colors inline-flex items-center justify-center rounded-lg font-semibold group peer focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 dark:focus-visible:ring-offset-dominant-950 bg-dominant-100 dark:bg-dominant-800 text-dominant-700 dark:text-dominant-300 not-disabled:hover:bg-dominant-200 dark:not-disabled:hover:bg-dominant-700 not-disabled:active:bg-dominant-300 focus-visible:ring-primary-700 dark:focus-visible:ring-primary-400 size-8 p-0 text-sm"
>
<i aria-hidden="true" class="fa-solid fa-trash"></i>
</button>
</div>
</td>
</tr>
<tr>
<th scope="row">Jordan Okafor</th>
<td>jordan.okafor@example.com</td>
<td>Support</td>
<td class="table-sticky-left">Agent</td>
<td>Lagos</td>
<td>3 days ago</td>
<td>
<span
class="inline-flex items-center gap-1 px-2 py-0.5 whitespace-nowrap text-xs font-semibold text-danger-800 dark:text-danger-300 bg-danger-100 dark:bg-danger-900/50 rounded-full"
>
<i aria-hidden="true" class="text-[10px] fa-solid fa-ban"> </i>Suspended</span
>
</td>
<td>
<div class="flex items-center gap-1">
<button
id="button-2242"
type="button"
aria-label="Edit Jordan Okafor"
class="cursor-pointer transition-colors inline-flex items-center justify-center rounded-lg font-semibold group peer focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 dark:focus-visible:ring-offset-dominant-950 bg-dominant-100 dark:bg-dominant-800 text-dominant-700 dark:text-dominant-300 not-disabled:hover:bg-dominant-200 dark:not-disabled:hover:bg-dominant-700 not-disabled:active:bg-dominant-300 focus-visible:ring-primary-700 dark:focus-visible:ring-primary-400 size-8 p-0 text-sm"
>
<i aria-hidden="true" class="fa-solid fa-pen"></i>
</button>
<button
id="button-2243"
type="button"
aria-label="Delete Jordan Okafor"
class="cursor-pointer transition-colors inline-flex items-center justify-center rounded-lg font-semibold group peer focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 dark:focus-visible:ring-offset-dominant-950 bg-dominant-100 dark:bg-dominant-800 text-dominant-700 dark:text-dominant-300 not-disabled:hover:bg-dominant-200 dark:not-disabled:hover:bg-dominant-700 not-disabled:active:bg-dominant-300 focus-visible:ring-primary-700 dark:focus-visible:ring-primary-400 size-8 p-0 text-sm"
>
<i aria-hidden="true" class="fa-solid fa-trash"></i>
</button>
</div>
</td>
</tr>
<tr>
<th scope="row">Sam Patel</th>
<td>sam.patel@example.com</td>
<td>Finance</td>
<td class="table-sticky-left">Analyst</td>
<td>Mumbai</td>
<td>Last week</td>
<td>
<span
class="inline-flex items-center gap-1 px-2 py-0.5 whitespace-nowrap text-xs font-semibold text-info-800 dark:text-info-300 bg-info-100 dark:bg-info-900/50 rounded-full"
>
<i aria-hidden="true" class="text-[10px] fa-solid fa-envelope"> </i>Invited</span
>
</td>
<td>
<div class="flex items-center gap-1">
<button
id="button-2244"
type="button"
aria-label="Edit Sam Patel"
class="cursor-pointer transition-colors inline-flex items-center justify-center rounded-lg font-semibold group peer focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 dark:focus-visible:ring-offset-dominant-950 bg-dominant-100 dark:bg-dominant-800 text-dominant-700 dark:text-dominant-300 not-disabled:hover:bg-dominant-200 dark:not-disabled:hover:bg-dominant-700 not-disabled:active:bg-dominant-300 focus-visible:ring-primary-700 dark:focus-visible:ring-primary-400 size-8 p-0 text-sm"
>
<i aria-hidden="true" class="fa-solid fa-pen"></i>
</button>
<button
id="button-2245"
type="button"
aria-label="Delete Sam Patel"
class="cursor-pointer transition-colors inline-flex items-center justify-center rounded-lg font-semibold group peer focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 dark:focus-visible:ring-offset-dominant-950 bg-dominant-100 dark:bg-dominant-800 text-dominant-700 dark:text-dominant-300 not-disabled:hover:bg-dominant-200 dark:not-disabled:hover:bg-dominant-700 not-disabled:active:bg-dominant-300 focus-visible:ring-primary-700 dark:focus-visible:ring-primary-400 size-8 p-0 text-sm"
>
<i aria-hidden="true" class="fa-solid fa-trash"></i>
</button>
</div>
</td>
</tr>
<tr>
<th scope="row">Riley Kim</th>
<td>riley.kim@example.com</td>
<td>Engineering</td>
<td class="table-sticky-left">Lead</td>
<td>Seoul</td>
<td>Today</td>
<td>
<span
class="inline-flex items-center gap-1 px-2 py-0.5 whitespace-nowrap text-xs font-semibold text-success-800 dark:text-success-300 bg-success-100 dark:bg-success-900/50 rounded-full"
>
<i aria-hidden="true" class="text-[10px] fa-solid fa-check"> </i>Active</span
>
</td>
<td>
<div class="flex items-center gap-1">
<button
id="button-2246"
type="button"
aria-label="Edit Riley Kim"
class="cursor-pointer transition-colors inline-flex items-center justify-center rounded-lg font-semibold group peer focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 dark:focus-visible:ring-offset-dominant-950 bg-dominant-100 dark:bg-dominant-800 text-dominant-700 dark:text-dominant-300 not-disabled:hover:bg-dominant-200 dark:not-disabled:hover:bg-dominant-700 not-disabled:active:bg-dominant-300 focus-visible:ring-primary-700 dark:focus-visible:ring-primary-400 size-8 p-0 text-sm"
>
<i aria-hidden="true" class="fa-solid fa-pen"></i>
</button>
<button
id="button-2247"
type="button"
aria-label="Delete Riley Kim"
class="cursor-pointer transition-colors inline-flex items-center justify-center rounded-lg font-semibold group peer focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 dark:focus-visible:ring-offset-dominant-950 bg-dominant-100 dark:bg-dominant-800 text-dominant-700 dark:text-dominant-300 not-disabled:hover:bg-dominant-200 dark:not-disabled:hover:bg-dominant-700 not-disabled:active:bg-dominant-300 focus-visible:ring-primary-700 dark:focus-visible:ring-primary-400 size-8 p-0 text-sm"
>
<i aria-hidden="true" class="fa-solid fa-trash"></i>
</button>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div>
<h3 class="mb-1 text-sm font-semibold text-dominant-900 dark:text-white">
Several sticky columns
</h3>
<p class="mb-3 text-sm text-dominant-600 dark:text-dominant-300">
Two sticky columns on the same side line up: the script sets the offset of the second from the
width of the first, so no fixed width is needed. The actions column sticks to the right at the
same time.
</p>
<div
id="table-2248-wrapper"
class="isolate overflow-auto rounded-xl border border-dominant-200 dark:border-dominant-700 focus-visible:ring-2 focus-visible:ring-primary-500 focus-visible:outline-none dark:focus-visible:ring-primary-400"
tabindex="0"
>
<table
id="table-2248"
class="w-full border-separate border-spacing-0 text-left text-sm [&_th]:px-4 [&_td]:px-4 [&_th]:whitespace-nowrap [&_td]:whitespace-nowrap [&_td]:text-dominant-700 dark:[&_td]:text-dominant-200 [&_tbody_th]:font-medium [&_tbody_th]:text-dominant-900 dark:[&_tbody_th]:text-white [&_thead_th]:text-xs [&_thead_th]:font-semibold [&_thead_th]:tracking-wide [&_thead_th]:uppercase [&_thead_tr:last-child>*]:border-b [&_thead_tr:last-child>*]:border-dominant-300 dark:[&_thead_tr:last-child>*]:border-dominant-600 [&_tbody>tr+tr>*]:border-t [&_tbody>tr>*]:border-dominant-200 dark:[&_tbody>tr>*]:border-dominant-700 [&_tfoot>tr>*]:border-t [&_tfoot>tr>*]:border-dominant-300 dark:[&_tfoot>tr>*]:border-dominant-600 [&_tfoot>tr>*]:font-semibold [&_thead_th]:bg-dominant-200 dark:[&_thead_th]:bg-dominant-700 [&_thead_th]:text-dominant-800 dark:[&_thead_th]:text-dominant-100 [&_thead_td]:bg-dominant-100 dark:[&_thead_td]:bg-dominant-800 [&_tfoot>tr>*]:bg-dominant-100 dark:[&_tfoot>tr>*]:bg-dominant-800 [&_tfoot>tr>*]:text-dominant-900 dark:[&_tfoot>tr>*]:text-white [&_.table-sticky-left]:sticky [&_.table-sticky-right]:sticky [&_tbody_.table-sticky-left]:z-10 [&_tbody_.table-sticky-right]:z-10 [&_tbody_.table-sticky-left]:bg-white dark:[&_tbody_.table-sticky-left]:bg-dominant-900 [&_tbody_.table-sticky-right]:bg-white dark:[&_tbody_.table-sticky-right]:bg-dominant-900 [&_thead_th.table-sticky-left]:z-30 [&_thead_th.table-sticky-right]:z-30 [&_thead_td.table-sticky-left]:z-10 [&_thead_td.table-sticky-right]:z-10 [&_th]:py-2 [&_td]:py-2"
>
<thead>
<tr>
<th scope="col" class="table-sticky-left">Name</th>
<th scope="col" class="table-sticky-left">Email</th>
<th scope="col">Department</th>
<th scope="col">Role</th>
<th scope="col">Location</th>
<th scope="col">Last active</th>
<th scope="col">Status</th>
<th scope="col" class="table-sticky-right">Actions</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row" class="table-sticky-left">Avery Chen</th>
<td class="table-sticky-left">avery.chen@example.com</td>
<td>Engineering</td>
<td>Developer</td>
<td>Berlin</td>
<td>Today</td>
<td>
<span
class="inline-flex items-center gap-1 px-2 py-0.5 whitespace-nowrap text-xs font-semibold text-success-800 dark:text-success-300 bg-success-100 dark:bg-success-900/50 rounded-full"
>
<i aria-hidden="true" class="text-[10px] fa-solid fa-check"> </i>Active</span
>
</td>
<td class="table-sticky-right">
<div class="flex items-center gap-1">
<button
id="button-2249"
type="button"
aria-label="Edit Avery Chen"
class="cursor-pointer transition-colors inline-flex items-center justify-center rounded-lg font-semibold group peer focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 dark:focus-visible:ring-offset-dominant-950 bg-dominant-100 dark:bg-dominant-800 text-dominant-700 dark:text-dominant-300 not-disabled:hover:bg-dominant-200 dark:not-disabled:hover:bg-dominant-700 not-disabled:active:bg-dominant-300 focus-visible:ring-primary-700 dark:focus-visible:ring-primary-400 size-8 p-0 text-sm"
>
<i aria-hidden="true" class="fa-solid fa-pen"></i>
</button>
<button
id="button-2250"
type="button"
aria-label="Delete Avery Chen"
class="cursor-pointer transition-colors inline-flex items-center justify-center rounded-lg font-semibold group peer focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 dark:focus-visible:ring-offset-dominant-950 bg-dominant-100 dark:bg-dominant-800 text-dominant-700 dark:text-dominant-300 not-disabled:hover:bg-dominant-200 dark:not-disabled:hover:bg-dominant-700 not-disabled:active:bg-dominant-300 focus-visible:ring-primary-700 dark:focus-visible:ring-primary-400 size-8 p-0 text-sm"
>
<i aria-hidden="true" class="fa-solid fa-trash"></i>
</button>
</div>
</td>
</tr>
<tr>
<th scope="row" class="table-sticky-left">Morgan Reyes</th>
<td class="table-sticky-left">morgan.reyes@example.com</td>
<td>Design</td>
<td>Designer</td>
<td>Lisbon</td>
<td>Yesterday</td>
<td>
<span
class="inline-flex items-center gap-1 px-2 py-0.5 whitespace-nowrap text-xs font-semibold text-warning-800 dark:text-warning-300 bg-warning-100 dark:bg-warning-900/50 rounded-full"
>
<i aria-hidden="true" class="text-[10px] fa-solid fa-clock"> </i>Pending</span
>
</td>
<td class="table-sticky-right">
<div class="flex items-center gap-1">
<button
id="button-2251"
type="button"
aria-label="Edit Morgan Reyes"
class="cursor-pointer transition-colors inline-flex items-center justify-center rounded-lg font-semibold group peer focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 dark:focus-visible:ring-offset-dominant-950 bg-dominant-100 dark:bg-dominant-800 text-dominant-700 dark:text-dominant-300 not-disabled:hover:bg-dominant-200 dark:not-disabled:hover:bg-dominant-700 not-disabled:active:bg-dominant-300 focus-visible:ring-primary-700 dark:focus-visible:ring-primary-400 size-8 p-0 text-sm"
>
<i aria-hidden="true" class="fa-solid fa-pen"></i>
</button>
<button
id="button-2252"
type="button"
aria-label="Delete Morgan Reyes"
class="cursor-pointer transition-colors inline-flex items-center justify-center rounded-lg font-semibold group peer focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 dark:focus-visible:ring-offset-dominant-950 bg-dominant-100 dark:bg-dominant-800 text-dominant-700 dark:text-dominant-300 not-disabled:hover:bg-dominant-200 dark:not-disabled:hover:bg-dominant-700 not-disabled:active:bg-dominant-300 focus-visible:ring-primary-700 dark:focus-visible:ring-primary-400 size-8 p-0 text-sm"
>
<i aria-hidden="true" class="fa-solid fa-trash"></i>
</button>
</div>
</td>
</tr>
<tr>
<th scope="row" class="table-sticky-left">Jordan Okafor</th>
<td class="table-sticky-left">jordan.okafor@example.com</td>
<td>Support</td>
<td>Agent</td>
<td>Lagos</td>
<td>3 days ago</td>
<td>
<span
class="inline-flex items-center gap-1 px-2 py-0.5 whitespace-nowrap text-xs font-semibold text-danger-800 dark:text-danger-300 bg-danger-100 dark:bg-danger-900/50 rounded-full"
>
<i aria-hidden="true" class="text-[10px] fa-solid fa-ban"> </i>Suspended</span
>
</td>
<td class="table-sticky-right">
<div class="flex items-center gap-1">
<button
id="button-2253"
type="button"
aria-label="Edit Jordan Okafor"
class="cursor-pointer transition-colors inline-flex items-center justify-center rounded-lg font-semibold group peer focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 dark:focus-visible:ring-offset-dominant-950 bg-dominant-100 dark:bg-dominant-800 text-dominant-700 dark:text-dominant-300 not-disabled:hover:bg-dominant-200 dark:not-disabled:hover:bg-dominant-700 not-disabled:active:bg-dominant-300 focus-visible:ring-primary-700 dark:focus-visible:ring-primary-400 size-8 p-0 text-sm"
>
<i aria-hidden="true" class="fa-solid fa-pen"></i>
</button>
<button
id="button-2254"
type="button"
aria-label="Delete Jordan Okafor"
class="cursor-pointer transition-colors inline-flex items-center justify-center rounded-lg font-semibold group peer focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 dark:focus-visible:ring-offset-dominant-950 bg-dominant-100 dark:bg-dominant-800 text-dominant-700 dark:text-dominant-300 not-disabled:hover:bg-dominant-200 dark:not-disabled:hover:bg-dominant-700 not-disabled:active:bg-dominant-300 focus-visible:ring-primary-700 dark:focus-visible:ring-primary-400 size-8 p-0 text-sm"
>
<i aria-hidden="true" class="fa-solid fa-trash"></i>
</button>
</div>
</td>
</tr>
<tr>
<th scope="row" class="table-sticky-left">Sam Patel</th>
<td class="table-sticky-left">sam.patel@example.com</td>
<td>Finance</td>
<td>Analyst</td>
<td>Mumbai</td>
<td>Last week</td>
<td>
<span
class="inline-flex items-center gap-1 px-2 py-0.5 whitespace-nowrap text-xs font-semibold text-info-800 dark:text-info-300 bg-info-100 dark:bg-info-900/50 rounded-full"
>
<i aria-hidden="true" class="text-[10px] fa-solid fa-envelope"> </i>Invited</span
>
</td>
<td class="table-sticky-right">
<div class="flex items-center gap-1">
<button
id="button-2255"
type="button"
aria-label="Edit Sam Patel"
class="cursor-pointer transition-colors inline-flex items-center justify-center rounded-lg font-semibold group peer focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 dark:focus-visible:ring-offset-dominant-950 bg-dominant-100 dark:bg-dominant-800 text-dominant-700 dark:text-dominant-300 not-disabled:hover:bg-dominant-200 dark:not-disabled:hover:bg-dominant-700 not-disabled:active:bg-dominant-300 focus-visible:ring-primary-700 dark:focus-visible:ring-primary-400 size-8 p-0 text-sm"
>
<i aria-hidden="true" class="fa-solid fa-pen"></i>
</button>
<button
id="button-2256"
type="button"
aria-label="Delete Sam Patel"
class="cursor-pointer transition-colors inline-flex items-center justify-center rounded-lg font-semibold group peer focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 dark:focus-visible:ring-offset-dominant-950 bg-dominant-100 dark:bg-dominant-800 text-dominant-700 dark:text-dominant-300 not-disabled:hover:bg-dominant-200 dark:not-disabled:hover:bg-dominant-700 not-disabled:active:bg-dominant-300 focus-visible:ring-primary-700 dark:focus-visible:ring-primary-400 size-8 p-0 text-sm"
>
<i aria-hidden="true" class="fa-solid fa-trash"></i>
</button>
</div>
</td>
</tr>
<tr>
<th scope="row" class="table-sticky-left">Riley Kim</th>
<td class="table-sticky-left">riley.kim@example.com</td>
<td>Engineering</td>
<td>Lead</td>
<td>Seoul</td>
<td>Today</td>
<td>
<span
class="inline-flex items-center gap-1 px-2 py-0.5 whitespace-nowrap text-xs font-semibold text-success-800 dark:text-success-300 bg-success-100 dark:bg-success-900/50 rounded-full"
>
<i aria-hidden="true" class="text-[10px] fa-solid fa-check"> </i>Active</span
>
</td>
<td class="table-sticky-right">
<div class="flex items-center gap-1">
<button
id="button-2257"
type="button"
aria-label="Edit Riley Kim"
class="cursor-pointer transition-colors inline-flex items-center justify-center rounded-lg font-semibold group peer focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 dark:focus-visible:ring-offset-dominant-950 bg-dominant-100 dark:bg-dominant-800 text-dominant-700 dark:text-dominant-300 not-disabled:hover:bg-dominant-200 dark:not-disabled:hover:bg-dominant-700 not-disabled:active:bg-dominant-300 focus-visible:ring-primary-700 dark:focus-visible:ring-primary-400 size-8 p-0 text-sm"
>
<i aria-hidden="true" class="fa-solid fa-pen"></i>
</button>
<button
id="button-2258"
type="button"
aria-label="Delete Riley Kim"
class="cursor-pointer transition-colors inline-flex items-center justify-center rounded-lg font-semibold group peer focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 dark:focus-visible:ring-offset-dominant-950 bg-dominant-100 dark:bg-dominant-800 text-dominant-700 dark:text-dominant-300 not-disabled:hover:bg-dominant-200 dark:not-disabled:hover:bg-dominant-700 not-disabled:active:bg-dominant-300 focus-visible:ring-primary-700 dark:focus-visible:ring-primary-400 size-8 p-0 text-sm"
>
<i aria-hidden="true" class="fa-solid fa-trash"></i>
</button>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div>
<h3 class="mb-1 text-sm font-semibold text-dominant-900 dark:text-white">
Sticky header and columns
</h3>
<p class="mb-3 text-sm text-dominant-600 dark:text-dominant-300">
Combine them: <code>sticky-header</code> with sticky columns. The corner cells are above both
the header cells and the column cells.
</p>
<div
id="table-2259-wrapper"
class="isolate overflow-auto rounded-xl border border-dominant-200 dark:border-dominant-700 focus-visible:ring-2 focus-visible:ring-primary-500 focus-visible:outline-none dark:focus-visible:ring-primary-400 max-h-96"
tabindex="0"
>
<table
id="table-2259"
class="w-full border-separate border-spacing-0 text-left text-sm [&_th]:px-4 [&_td]:px-4 [&_th]:whitespace-nowrap [&_td]:whitespace-nowrap [&_td]:text-dominant-700 dark:[&_td]:text-dominant-200 [&_tbody_th]:font-medium [&_tbody_th]:text-dominant-900 dark:[&_tbody_th]:text-white [&_thead_th]:text-xs [&_thead_th]:font-semibold [&_thead_th]:tracking-wide [&_thead_th]:uppercase [&_thead_tr:last-child>*]:border-b [&_thead_tr:last-child>*]:border-dominant-300 dark:[&_thead_tr:last-child>*]:border-dominant-600 [&_tbody>tr+tr>*]:border-t [&_tbody>tr>*]:border-dominant-200 dark:[&_tbody>tr>*]:border-dominant-700 [&_tfoot>tr>*]:border-t [&_tfoot>tr>*]:border-dominant-300 dark:[&_tfoot>tr>*]:border-dominant-600 [&_tfoot>tr>*]:font-semibold [&_thead_th]:bg-dominant-200 dark:[&_thead_th]:bg-dominant-700 [&_thead_th]:text-dominant-800 dark:[&_thead_th]:text-dominant-100 [&_thead_td]:bg-dominant-100 dark:[&_thead_td]:bg-dominant-800 [&_tfoot>tr>*]:bg-dominant-100 dark:[&_tfoot>tr>*]:bg-dominant-800 [&_tfoot>tr>*]:text-dominant-900 dark:[&_tfoot>tr>*]:text-white [&_.table-sticky-left]:sticky [&_.table-sticky-right]:sticky [&_tbody_.table-sticky-left]:z-10 [&_tbody_.table-sticky-right]:z-10 [&_tbody_.table-sticky-left]:bg-white dark:[&_tbody_.table-sticky-left]:bg-dominant-900 [&_tbody_.table-sticky-right]:bg-white dark:[&_tbody_.table-sticky-right]:bg-dominant-900 [&_thead_th.table-sticky-left]:z-30 [&_thead_th.table-sticky-right]:z-30 [&_thead_td.table-sticky-left]:z-10 [&_thead_td.table-sticky-right]:z-10 [&_th]:py-2 [&_td]:py-2 [&_thead]:sticky [&_thead]:top-0 [&_thead]:z-20"
>
<thead>
<tr>
<th scope="col" class="table-sticky-left">Name</th>
<th scope="col">Email</th>
<th scope="col">Department</th>
<th scope="col">Role</th>
<th scope="col">Location</th>
<th scope="col">Last active</th>
<th scope="col">Status</th>
<th scope="col">Actions</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row" class="table-sticky-left">Avery Chen</th>
<td>avery.chen@example.com</td>
<td>Engineering</td>
<td>Developer</td>
<td>Berlin</td>
<td>Today</td>
<td>
<span
class="inline-flex items-center gap-1 px-2 py-0.5 whitespace-nowrap text-xs font-semibold text-success-800 dark:text-success-300 bg-success-100 dark:bg-success-900/50 rounded-full"
>
<i aria-hidden="true" class="text-[10px] fa-solid fa-check"> </i>Active</span
>
</td>
<td>
<div class="flex items-center gap-1">
<button
id="button-2260"
type="button"
aria-label="Edit Avery Chen"
class="cursor-pointer transition-colors inline-flex items-center justify-center rounded-lg font-semibold group peer focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 dark:focus-visible:ring-offset-dominant-950 bg-dominant-100 dark:bg-dominant-800 text-dominant-700 dark:text-dominant-300 not-disabled:hover:bg-dominant-200 dark:not-disabled:hover:bg-dominant-700 not-disabled:active:bg-dominant-300 focus-visible:ring-primary-700 dark:focus-visible:ring-primary-400 size-8 p-0 text-sm"
>
<i aria-hidden="true" class="fa-solid fa-pen"></i>
</button>
<button
id="button-2261"
type="button"
aria-label="Delete Avery Chen"
class="cursor-pointer transition-colors inline-flex items-center justify-center rounded-lg font-semibold group peer focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 dark:focus-visible:ring-offset-dominant-950 bg-dominant-100 dark:bg-dominant-800 text-dominant-700 dark:text-dominant-300 not-disabled:hover:bg-dominant-200 dark:not-disabled:hover:bg-dominant-700 not-disabled:active:bg-dominant-300 focus-visible:ring-primary-700 dark:focus-visible:ring-primary-400 size-8 p-0 text-sm"
>
<i aria-hidden="true" class="fa-solid fa-trash"></i>
</button>
</div>
</td>
</tr>
<tr>
<th scope="row" class="table-sticky-left">Morgan Reyes</th>
<td>morgan.reyes@example.com</td>
<td>Design</td>
<td>Designer</td>
<td>Lisbon</td>
<td>Yesterday</td>
<td>
<span
class="inline-flex items-center gap-1 px-2 py-0.5 whitespace-nowrap text-xs font-semibold text-warning-800 dark:text-warning-300 bg-warning-100 dark:bg-warning-900/50 rounded-full"
>
<i aria-hidden="true" class="text-[10px] fa-solid fa-clock"> </i>Pending</span
>
</td>
<td>
<div class="flex items-center gap-1">
<button
id="button-2262"
type="button"
aria-label="Edit Morgan Reyes"
class="cursor-pointer transition-colors inline-flex items-center justify-center rounded-lg font-semibold group peer focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 dark:focus-visible:ring-offset-dominant-950 bg-dominant-100 dark:bg-dominant-800 text-dominant-700 dark:text-dominant-300 not-disabled:hover:bg-dominant-200 dark:not-disabled:hover:bg-dominant-700 not-disabled:active:bg-dominant-300 focus-visible:ring-primary-700 dark:focus-visible:ring-primary-400 size-8 p-0 text-sm"
>
<i aria-hidden="true" class="fa-solid fa-pen"></i>
</button>
<button
id="button-2263"
type="button"
aria-label="Delete Morgan Reyes"
class="cursor-pointer transition-colors inline-flex items-center justify-center rounded-lg font-semibold group peer focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 dark:focus-visible:ring-offset-dominant-950 bg-dominant-100 dark:bg-dominant-800 text-dominant-700 dark:text-dominant-300 not-disabled:hover:bg-dominant-200 dark:not-disabled:hover:bg-dominant-700 not-disabled:active:bg-dominant-300 focus-visible:ring-primary-700 dark:focus-visible:ring-primary-400 size-8 p-0 text-sm"
>
<i aria-hidden="true" class="fa-solid fa-trash"></i>
</button>
</div>
</td>
</tr>
<tr>
<th scope="row" class="table-sticky-left">Jordan Okafor</th>
<td>jordan.okafor@example.com</td>
<td>Support</td>
<td>Agent</td>
<td>Lagos</td>
<td>3 days ago</td>
<td>
<span
class="inline-flex items-center gap-1 px-2 py-0.5 whitespace-nowrap text-xs font-semibold text-danger-800 dark:text-danger-300 bg-danger-100 dark:bg-danger-900/50 rounded-full"
>
<i aria-hidden="true" class="text-[10px] fa-solid fa-ban"> </i>Suspended</span
>
</td>
<td>
<div class="flex items-center gap-1">
<button
id="button-2264"
type="button"
aria-label="Edit Jordan Okafor"
class="cursor-pointer transition-colors inline-flex items-center justify-center rounded-lg font-semibold group peer focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 dark:focus-visible:ring-offset-dominant-950 bg-dominant-100 dark:bg-dominant-800 text-dominant-700 dark:text-dominant-300 not-disabled:hover:bg-dominant-200 dark:not-disabled:hover:bg-dominant-700 not-disabled:active:bg-dominant-300 focus-visible:ring-primary-700 dark:focus-visible:ring-primary-400 size-8 p-0 text-sm"
>
<i aria-hidden="true" class="fa-solid fa-pen"></i>
</button>
<button
id="button-2265"
type="button"
aria-label="Delete Jordan Okafor"
class="cursor-pointer transition-colors inline-flex items-center justify-center rounded-lg font-semibold group peer focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 dark:focus-visible:ring-offset-dominant-950 bg-dominant-100 dark:bg-dominant-800 text-dominant-700 dark:text-dominant-300 not-disabled:hover:bg-dominant-200 dark:not-disabled:hover:bg-dominant-700 not-disabled:active:bg-dominant-300 focus-visible:ring-primary-700 dark:focus-visible:ring-primary-400 size-8 p-0 text-sm"
>
<i aria-hidden="true" class="fa-solid fa-trash"></i>
</button>
</div>
</td>
</tr>
<tr>
<th scope="row" class="table-sticky-left">Sam Patel</th>
<td>sam.patel@example.com</td>
<td>Finance</td>
<td>Analyst</td>
<td>Mumbai</td>
<td>Last week</td>
<td>
<span
class="inline-flex items-center gap-1 px-2 py-0.5 whitespace-nowrap text-xs font-semibold text-info-800 dark:text-info-300 bg-info-100 dark:bg-info-900/50 rounded-full"
>
<i aria-hidden="true" class="text-[10px] fa-solid fa-envelope"> </i>Invited</span
>
</td>
<td>
<div class="flex items-center gap-1">
<button
id="button-2266"
type="button"
aria-label="Edit Sam Patel"
class="cursor-pointer transition-colors inline-flex items-center justify-center rounded-lg font-semibold group peer focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 dark:focus-visible:ring-offset-dominant-950 bg-dominant-100 dark:bg-dominant-800 text-dominant-700 dark:text-dominant-300 not-disabled:hover:bg-dominant-200 dark:not-disabled:hover:bg-dominant-700 not-disabled:active:bg-dominant-300 focus-visible:ring-primary-700 dark:focus-visible:ring-primary-400 size-8 p-0 text-sm"
>
<i aria-hidden="true" class="fa-solid fa-pen"></i>
</button>
<button
id="button-2267"
type="button"
aria-label="Delete Sam Patel"
class="cursor-pointer transition-colors inline-flex items-center justify-center rounded-lg font-semibold group peer focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 dark:focus-visible:ring-offset-dominant-950 bg-dominant-100 dark:bg-dominant-800 text-dominant-700 dark:text-dominant-300 not-disabled:hover:bg-dominant-200 dark:not-disabled:hover:bg-dominant-700 not-disabled:active:bg-dominant-300 focus-visible:ring-primary-700 dark:focus-visible:ring-primary-400 size-8 p-0 text-sm"
>
<i aria-hidden="true" class="fa-solid fa-trash"></i>
</button>
</div>
</td>
</tr>
<tr>
<th scope="row" class="table-sticky-left">Riley Kim</th>
<td>riley.kim@example.com</td>
<td>Engineering</td>
<td>Lead</td>
<td>Seoul</td>
<td>Today</td>
<td>
<span
class="inline-flex items-center gap-1 px-2 py-0.5 whitespace-nowrap text-xs font-semibold text-success-800 dark:text-success-300 bg-success-100 dark:bg-success-900/50 rounded-full"
>
<i aria-hidden="true" class="text-[10px] fa-solid fa-check"> </i>Active</span
>
</td>
<td>
<div class="flex items-center gap-1">
<button
id="button-2268"
type="button"
aria-label="Edit Riley Kim"
class="cursor-pointer transition-colors inline-flex items-center justify-center rounded-lg font-semibold group peer focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 dark:focus-visible:ring-offset-dominant-950 bg-dominant-100 dark:bg-dominant-800 text-dominant-700 dark:text-dominant-300 not-disabled:hover:bg-dominant-200 dark:not-disabled:hover:bg-dominant-700 not-disabled:active:bg-dominant-300 focus-visible:ring-primary-700 dark:focus-visible:ring-primary-400 size-8 p-0 text-sm"
>
<i aria-hidden="true" class="fa-solid fa-pen"></i>
</button>
<button
id="button-2269"
type="button"
aria-label="Delete Riley Kim"
class="cursor-pointer transition-colors inline-flex items-center justify-center rounded-lg font-semibold group peer focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 dark:focus-visible:ring-offset-dominant-950 bg-dominant-100 dark:bg-dominant-800 text-dominant-700 dark:text-dominant-300 not-disabled:hover:bg-dominant-200 dark:not-disabled:hover:bg-dominant-700 not-disabled:active:bg-dominant-300 focus-visible:ring-primary-700 dark:focus-visible:ring-primary-400 size-8 p-0 text-sm"
>
<i aria-hidden="true" class="fa-solid fa-trash"></i>
</button>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
Grouped header
A header of two rows. A cell that names a group spans its columns with colspan and scope="colgroup" (Q1 over Revenue and Orders); a cell that has no sub-columns spans both rows with rowspan="2" (Region, Channel). The same works in the body: rowspan on a <th scope="rowgroup"> lets one region name several rows. Keep the number of cells in every row equal to the number of columns once the spans are counted, put a border on the first cell of a group so the groups read as groups, and use border-separate border-spacing-0 if you also make the header sticky.
| Region | Channel | Q1 | Q2 | ||
|---|---|---|---|---|---|
| Revenue | Orders | Revenue | Orders | ||
| Americas | Online | $84,200 | 1,204 | $91,750 | 1,311 |
| Retail | $61,480 | 812 | $58,930 | 790 | |
| Europe | Online | $72,900 | 1,067 | $80,115 | 1,152 |
| Retail | $49,310 | 655 | $52,600 | 701 | |
<div
id="table-1482-wrapper"
class="isolate overflow-auto rounded-xl border border-dominant-200 dark:border-dominant-700 focus-visible:ring-2 focus-visible:ring-primary-500 focus-visible:outline-none dark:focus-visible:ring-primary-400"
tabindex="0"
>
<table
id="table-1482"
class="w-full border-separate border-spacing-0 text-left text-sm [&_th]:px-4 [&_td]:px-4 [&_th]:whitespace-nowrap [&_td]:whitespace-nowrap [&_td]:text-dominant-700 dark:[&_td]:text-dominant-200 [&_tbody_th]:font-medium [&_tbody_th]:text-dominant-900 dark:[&_tbody_th]:text-white [&_thead_th]:text-xs [&_thead_th]:font-semibold [&_thead_th]:tracking-wide [&_thead_th]:uppercase [&_thead_tr:last-child>*]:border-b [&_thead_tr:last-child>*]:border-dominant-300 dark:[&_thead_tr:last-child>*]:border-dominant-600 [&_tbody>tr+tr>*]:border-t [&_tbody>tr>*]:border-dominant-200 dark:[&_tbody>tr>*]:border-dominant-700 [&_tfoot>tr>*]:border-t [&_tfoot>tr>*]:border-dominant-300 dark:[&_tfoot>tr>*]:border-dominant-600 [&_tfoot>tr>*]:font-semibold [&_thead_th]:bg-dominant-200 dark:[&_thead_th]:bg-dominant-700 [&_thead_th]:text-dominant-800 dark:[&_thead_th]:text-dominant-100 [&_thead_td]:bg-dominant-100 dark:[&_thead_td]:bg-dominant-800 [&_tfoot>tr>*]:bg-dominant-100 dark:[&_tfoot>tr>*]:bg-dominant-800 [&_tfoot>tr>*]:text-dominant-900 dark:[&_tfoot>tr>*]:text-white [&_.table-sticky-left]:sticky [&_.table-sticky-right]:sticky [&_tbody_.table-sticky-left]:z-10 [&_tbody_.table-sticky-right]:z-10 [&_tbody_.table-sticky-left]:bg-white dark:[&_tbody_.table-sticky-left]:bg-dominant-900 [&_tbody_.table-sticky-right]:bg-white dark:[&_tbody_.table-sticky-right]:bg-dominant-900 [&_thead_th.table-sticky-left]:z-30 [&_thead_th.table-sticky-right]:z-30 [&_thead_td.table-sticky-left]:z-10 [&_thead_td.table-sticky-right]:z-10 [&_th]:py-3 [&_td]:py-3"
>
<thead>
<tr>
<th scope="col" rowspan="2">Region</th>
<th scope="col" rowspan="2">Channel</th>
<th scope="col" colspan="2">Q1</th>
<th scope="col" colspan="2">Q2</th>
</tr>
<tr>
<th scope="col">Revenue</th>
<th scope="col">Orders</th>
<th scope="col">Revenue</th>
<th scope="col">Orders</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row" rowspan="2">Americas</th>
<th scope="row">Online</th>
<td>$84,200</td>
<td>1,204</td>
<td>$91,750</td>
<td>1,311</td>
</tr>
<tr>
<th scope="row">Retail</th>
<td>$61,480</td>
<td>812</td>
<td>$58,930</td>
<td>790</td>
</tr>
<tr>
<th scope="row" rowspan="2">Europe</th>
<th scope="row">Online</th>
<td>$72,900</td>
<td>1,067</td>
<td>$80,115</td>
<td>1,152</td>
</tr>
<tr>
<th scope="row">Retail</th>
<td>$49,310</td>
<td>655</td>
<td>$52,600</td>
<td>701</td>
</tr>
</tbody>
</table>
</div>
Empty
When there is no data keep the header and use one row whose cell spans every column (colspan) with a short message and, if it helps, the action that fixes it. Do not leave an empty body: a screen reader would announce a table with no rows.
| Name | Department | Status |
|---|---|---|
|
No team members yet Invite someone and they will appear here. |
||
<div
id="table-1483-wrapper"
class="isolate overflow-auto rounded-xl border border-dominant-200 dark:border-dominant-700 focus-visible:ring-2 focus-visible:ring-primary-500 focus-visible:outline-none dark:focus-visible:ring-primary-400"
tabindex="0"
>
<table
id="table-1483"
class="w-full border-separate border-spacing-0 text-left text-sm [&_th]:px-4 [&_td]:px-4 [&_th]:whitespace-nowrap [&_td]:whitespace-nowrap [&_td]:text-dominant-700 dark:[&_td]:text-dominant-200 [&_tbody_th]:font-medium [&_tbody_th]:text-dominant-900 dark:[&_tbody_th]:text-white [&_thead_th]:text-xs [&_thead_th]:font-semibold [&_thead_th]:tracking-wide [&_thead_th]:uppercase [&_thead_tr:last-child>*]:border-b [&_thead_tr:last-child>*]:border-dominant-300 dark:[&_thead_tr:last-child>*]:border-dominant-600 [&_tbody>tr+tr>*]:border-t [&_tbody>tr>*]:border-dominant-200 dark:[&_tbody>tr>*]:border-dominant-700 [&_tfoot>tr>*]:border-t [&_tfoot>tr>*]:border-dominant-300 dark:[&_tfoot>tr>*]:border-dominant-600 [&_tfoot>tr>*]:font-semibold [&_thead_th]:bg-dominant-200 dark:[&_thead_th]:bg-dominant-700 [&_thead_th]:text-dominant-800 dark:[&_thead_th]:text-dominant-100 [&_thead_td]:bg-dominant-100 dark:[&_thead_td]:bg-dominant-800 [&_tfoot>tr>*]:bg-dominant-100 dark:[&_tfoot>tr>*]:bg-dominant-800 [&_tfoot>tr>*]:text-dominant-900 dark:[&_tfoot>tr>*]:text-white [&_.table-sticky-left]:sticky [&_.table-sticky-right]:sticky [&_tbody_.table-sticky-left]:z-10 [&_tbody_.table-sticky-right]:z-10 [&_tbody_.table-sticky-left]:bg-white dark:[&_tbody_.table-sticky-left]:bg-dominant-900 [&_tbody_.table-sticky-right]:bg-white dark:[&_tbody_.table-sticky-right]:bg-dominant-900 [&_thead_th.table-sticky-left]:z-30 [&_thead_th.table-sticky-right]:z-30 [&_thead_td.table-sticky-left]:z-10 [&_thead_td.table-sticky-right]:z-10 [&_th]:py-3 [&_td]:py-3"
>
<thead>
<tr>
<th scope="col">Name</th>
<th scope="col">Department</th>
<th scope="col">Status</th>
</tr>
</thead>
<tbody>
<tr>
<td colspan="3" class="py-10 text-center">
<i
aria-hidden="true"
class="text-2xl text-dominant-500 dark:text-dominant-300 fa-solid fa-table-cells"
>
</i>
<p class="mt-3 font-medium text-dominant-900 dark:text-white">No team members yet</p>
<p class="mt-1 text-dominant-600 dark:text-dominant-300">
Invite someone and they will appear here.
</p>
<button
id="button-1853"
type="button"
class="cursor-pointer transition-colors inline-flex items-center justify-center rounded-lg font-semibold group peer focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 dark:focus-visible:ring-offset-dominant-950 bg-primary-600 text-white shadow-sm not-disabled:hover:bg-primary-700 not-disabled:active:bg-primary-800 focus-visible:ring-primary-700 dark:focus-visible:ring-primary-400 gap-2 px-4 py-2.5 text-sm mt-4"
>
<span>Invite a member</span>
</button>
</td>
</tr>
</tbody>
</table>
</div>