Data Table
Data Table
Filter payments by email, sort the results, and select rows across pages.
This example uses simple-datatables
Simple-datatables handles sorting, filtering, and pagination in the browser. Basecoat supplies the table and controls. If your server handles those operations, use Table on its own.
| Status | Amount | Actions | ||
|---|---|---|---|---|
| success | ken99@example.com | $316.00 | ||
| success | Abe45@example.com | $242.00 | ||
| processing | Monserrat44@example.com | $837.00 | ||
| success | Silas22@example.com | $874.00 | ||
| failed | carmella@example.com | $721.00 |
<div id="payments-demo" data-payments-example class="w-full space-y-4">
<div class="flex items-center justify-between gap-4" data-table-controls inert>
<input type="search" class="input max-w-sm" placeholder="Filter emails..." aria-label="Filter emails" aria-controls="payments-demo-table" />
<div class="dropdown-menu">
<button type="button" class="btn" data-variant="outline" aria-haspopup="menu" aria-expanded="false" aria-controls="payments-demo-columns">
Columns
<svg aria-hidden="true" class="lucide lucide-chevron-down" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" > <path d="m6 9 6 6 6-6" /> </svg>
</button>
<div data-popover data-align="end" aria-hidden="true" class="w-44">
<div role="menu" id="payments-demo-columns" aria-label="Visible columns">
<button type="button" role="menuitemcheckbox" aria-checked="true" data-column="1">
<span data-indicator><svg aria-hidden="true" class="lucide lucide-check" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" > <path d="M20 6 9 17l-5-5" /> </svg></span>
Status
</button>
<button type="button" role="menuitemcheckbox" aria-checked="true" data-column="2">
<span data-indicator><svg aria-hidden="true" class="lucide lucide-check" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" > <path d="M20 6 9 17l-5-5" /> </svg></span>
Email
</button>
<button type="button" role="menuitemcheckbox" aria-checked="true" data-column="3">
<span data-indicator><svg aria-hidden="true" class="lucide lucide-check" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" > <path d="M20 6 9 17l-5-5" /> </svg></span>
Amount
</button>
</div>
</div>
</div>
</div>
<div class="table-container rounded-md border">
<table id="payments-demo-table" class="table" aria-label="Payments">
<caption class="sr-only">Payments</caption>
<thead>
<tr>
<th>
<input type="checkbox" class="input" aria-label="Select visible rows" />
</th>
<th>Status</th>
<th>
<button type="button" class="btn" data-variant="ghost" data-size="sm" data-sort="2">
Email
<svg aria-hidden="true" class="lucide lucide-arrow-up-down" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" > <path d="m21 16-4 4-4-4" /> <path d="M17 20V4" /> <path d="m3 8 4-4 4 4" /> <path d="M7 4v16" /> </svg>
</button>
</th>
<th class="text-end">Amount</th>
<th><span class="sr-only">Actions</span></th>
</tr>
</thead>
<tbody>
<tr data-payment-id="m5gr84i9">
<td>
<input type="checkbox" class="input" value="m5gr84i9" aria-label="Select ken99@example.com" />
</td>
<td class="capitalize">success</td>
<td><bdi>ken99@example.com</bdi></td>
<td class="text-end font-medium"><bdi>$316.00</bdi></td>
<td>
<div class="dropdown-menu">
<button type="button" class="btn" data-variant="ghost" data-size="icon-xs" aria-label="Actions for ken99@example.com" aria-haspopup="menu" aria-expanded="false" aria-controls="payments-demo-m5gr84i9-menu">
<svg aria-hidden="true" class="lucide lucide-ellipsis" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" > <circle cx="12" cy="12" r="1" /> <circle cx="19" cy="12" r="1" /> <circle cx="5" cy="12" r="1" /> </svg>
</button>
<div data-popover data-side="inline-start" data-align="end" aria-hidden="true" class="w-44">
<div role="menu" id="payments-demo-m5gr84i9-menu" aria-label="Payment actions">
<div role="group" aria-label="Actions">
<div role="heading" aria-level="3">Actions</div>
<button type="button" role="menuitem" data-copy-payment>Copy payment ID</button>
</div>
<hr />
<div role="group">
<button type="button" role="menuitem" data-customer="ken99@example.com">View customer</button>
<button type="button" role="menuitem" data-payment-details>View payment details</button>
</div>
</div>
</div>
</div>
</td>
</tr>
<tr data-payment-id="3u1reuv4">
<td>
<input type="checkbox" class="input" value="3u1reuv4" aria-label="Select Abe45@example.com" />
</td>
<td class="capitalize">success</td>
<td><bdi>Abe45@example.com</bdi></td>
<td class="text-end font-medium"><bdi>$242.00</bdi></td>
<td>
<div class="dropdown-menu">
<button type="button" class="btn" data-variant="ghost" data-size="icon-xs" aria-label="Actions for Abe45@example.com" aria-haspopup="menu" aria-expanded="false" aria-controls="payments-demo-3u1reuv4-menu">
<svg aria-hidden="true" class="lucide lucide-ellipsis" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" > <circle cx="12" cy="12" r="1" /> <circle cx="19" cy="12" r="1" /> <circle cx="5" cy="12" r="1" /> </svg>
</button>
<div data-popover data-side="inline-start" data-align="end" aria-hidden="true" class="w-44">
<div role="menu" id="payments-demo-3u1reuv4-menu" aria-label="Payment actions">
<div role="group" aria-label="Actions">
<div role="heading" aria-level="3">Actions</div>
<button type="button" role="menuitem" data-copy-payment>Copy payment ID</button>
</div>
<hr />
<div role="group">
<button type="button" role="menuitem" data-customer="Abe45@example.com">View customer</button>
<button type="button" role="menuitem" data-payment-details>View payment details</button>
</div>
</div>
</div>
</div>
</td>
</tr>
<tr data-payment-id="derv1ws0">
<td>
<input type="checkbox" class="input" value="derv1ws0" aria-label="Select Monserrat44@example.com" />
</td>
<td class="capitalize">processing</td>
<td><bdi>Monserrat44@example.com</bdi></td>
<td class="text-end font-medium"><bdi>$837.00</bdi></td>
<td>
<div class="dropdown-menu">
<button type="button" class="btn" data-variant="ghost" data-size="icon-xs" aria-label="Actions for Monserrat44@example.com" aria-haspopup="menu" aria-expanded="false" aria-controls="payments-demo-derv1ws0-menu">
<svg aria-hidden="true" class="lucide lucide-ellipsis" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" > <circle cx="12" cy="12" r="1" /> <circle cx="19" cy="12" r="1" /> <circle cx="5" cy="12" r="1" /> </svg>
</button>
<div data-popover data-side="inline-start" data-align="end" aria-hidden="true" class="w-44">
<div role="menu" id="payments-demo-derv1ws0-menu" aria-label="Payment actions">
<div role="group" aria-label="Actions">
<div role="heading" aria-level="3">Actions</div>
<button type="button" role="menuitem" data-copy-payment>Copy payment ID</button>
</div>
<hr />
<div role="group">
<button type="button" role="menuitem" data-customer="Monserrat44@example.com">View customer</button>
<button type="button" role="menuitem" data-payment-details>View payment details</button>
</div>
</div>
</div>
</div>
</td>
</tr>
<tr data-payment-id="5kma53ae">
<td>
<input type="checkbox" class="input" value="5kma53ae" aria-label="Select Silas22@example.com" />
</td>
<td class="capitalize">success</td>
<td><bdi>Silas22@example.com</bdi></td>
<td class="text-end font-medium"><bdi>$874.00</bdi></td>
<td>
<div class="dropdown-menu">
<button type="button" class="btn" data-variant="ghost" data-size="icon-xs" aria-label="Actions for Silas22@example.com" aria-haspopup="menu" aria-expanded="false" aria-controls="payments-demo-5kma53ae-menu">
<svg aria-hidden="true" class="lucide lucide-ellipsis" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" > <circle cx="12" cy="12" r="1" /> <circle cx="19" cy="12" r="1" /> <circle cx="5" cy="12" r="1" /> </svg>
</button>
<div data-popover data-side="inline-start" data-align="end" aria-hidden="true" class="w-44">
<div role="menu" id="payments-demo-5kma53ae-menu" aria-label="Payment actions">
<div role="group" aria-label="Actions">
<div role="heading" aria-level="3">Actions</div>
<button type="button" role="menuitem" data-copy-payment>Copy payment ID</button>
</div>
<hr />
<div role="group">
<button type="button" role="menuitem" data-customer="Silas22@example.com">View customer</button>
<button type="button" role="menuitem" data-payment-details>View payment details</button>
</div>
</div>
</div>
</div>
</td>
</tr>
<tr data-payment-id="bhqecj4p">
<td>
<input type="checkbox" class="input" value="bhqecj4p" aria-label="Select carmella@example.com" />
</td>
<td class="capitalize">failed</td>
<td><bdi>carmella@example.com</bdi></td>
<td class="text-end font-medium"><bdi>$721.00</bdi></td>
<td>
<div class="dropdown-menu">
<button type="button" class="btn" data-variant="ghost" data-size="icon-xs" aria-label="Actions for carmella@example.com" aria-haspopup="menu" aria-expanded="false" aria-controls="payments-demo-bhqecj4p-menu">
<svg aria-hidden="true" class="lucide lucide-ellipsis" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" > <circle cx="12" cy="12" r="1" /> <circle cx="19" cy="12" r="1" /> <circle cx="5" cy="12" r="1" /> </svg>
</button>
<div data-popover data-side="inline-start" data-align="end" aria-hidden="true" class="w-44">
<div role="menu" id="payments-demo-bhqecj4p-menu" aria-label="Payment actions">
<div role="group" aria-label="Actions">
<div role="heading" aria-level="3">Actions</div>
<button type="button" role="menuitem" data-copy-payment>Copy payment ID</button>
</div>
<hr />
<div role="group">
<button type="button" role="menuitem" data-customer="carmella@example.com">View customer</button>
<button type="button" role="menuitem" data-payment-details>View payment details</button>
</div>
</div>
</div>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<div class="flex flex-wrap items-center justify-between gap-3 text-sm" data-table-controls inert>
<span class="text-muted-foreground" data-selection-count aria-live="polite">0 of 5 row(s) selected.</span>
<div class="flex items-center gap-2">
<span class="text-muted-foreground" data-page-count aria-live="polite">Page 1 of 2</span>
<button type="button" class="btn" data-variant="outline" data-size="sm" data-previous>Previous</button>
<button type="button" class="btn" data-variant="outline" data-size="sm" data-next>Next</button>
</div>
</div>
<output class="sr-only"></output>
</div>
<style>
[data-payments-example] td.datatable-empty {
height: 6rem;
text-align: center;
}
/* Reserve the first page until the table initializes. */
@media (scripting: enabled) {
[data-payments-example]:has([data-table-controls][inert]) tbody tr:nth-child(3) { border-bottom-width: 0; }
[data-payments-example]:has([data-table-controls][inert]) tbody tr:nth-child(n+4) { display: none; }
}
@media (scripting: none) {
[data-payments-example] [data-table-controls] { display: none; }
}
</style>Usage
Load Basecoat and simple-datatables
Include the Basecoat stylesheet and JavaScript bundle on your page. Add this script to the page head for sorting, filtering, and pagination.
<script src="https://cdn.jsdelivr.net/npm/simple-datatables@10.3.0/dist/umd/simple-datatables.js" defer></script>Copy the payments table
Copy the table and its controls from the Code tab into your page body. Put the accompanying style rules in your stylesheet. For each payment, use the same ID on the row and as its checkbox value.
Connect the controls
Download payments.js and save it beside your HTML file. This is the script the preview uses to connect the controls to the table and keep rows selected across pages. Add this at the end of the page body:
<script type="module">
import { mountPayments } from "./payments.js";
mountPayments(document.getElementById("payments-demo"), simpleDatatables.DataTable);
</script>Examples
RTL
Basecoat uses logical alignment. Email addresses and amounts retain their content, while the toolbar, table, and footer follow the container direction.
| الحالة | المبلغ | الإجراءات | ||
|---|---|---|---|---|
| ناجح | ken99@example.com | $316.00 | ||
| ناجح | Abe45@example.com | $242.00 | ||
| قيد المعالجة | Monserrat44@example.com | $837.00 | ||
| ناجح | Silas22@example.com | $874.00 | ||
| فشل | carmella@example.com | $721.00 |
<div id="payments-rtl" data-payments-example class="w-full space-y-4" dir="rtl" lang="ar">
<div class="flex items-center justify-between gap-4" data-table-controls inert>
<input type="search" class="input max-w-sm" placeholder="تصفية البريد الإلكتروني..." aria-label="تصفية البريد الإلكتروني" aria-controls="payments-rtl-table" />
<div class="dropdown-menu">
<button type="button" class="btn" data-variant="outline" aria-haspopup="menu" aria-expanded="false" aria-controls="payments-rtl-columns">
الأعمدة
<svg aria-hidden="true" class="lucide lucide-chevron-down" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" > <path d="m6 9 6 6 6-6" /> </svg>
</button>
<div data-popover data-align="end" aria-hidden="true" class="w-44">
<div role="menu" id="payments-rtl-columns" aria-label="الأعمدة المرئية">
<button type="button" role="menuitemcheckbox" aria-checked="true" data-column="1">
<span data-indicator><svg aria-hidden="true" class="lucide lucide-check" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" > <path d="M20 6 9 17l-5-5" /> </svg></span>
الحالة
</button>
<button type="button" role="menuitemcheckbox" aria-checked="true" data-column="2">
<span data-indicator><svg aria-hidden="true" class="lucide lucide-check" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" > <path d="M20 6 9 17l-5-5" /> </svg></span>
البريد الإلكتروني
</button>
<button type="button" role="menuitemcheckbox" aria-checked="true" data-column="3">
<span data-indicator><svg aria-hidden="true" class="lucide lucide-check" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" > <path d="M20 6 9 17l-5-5" /> </svg></span>
المبلغ
</button>
</div>
</div>
</div>
</div>
<div class="table-container rounded-md border">
<table id="payments-rtl-table" class="table" aria-label="المدفوعات">
<caption class="sr-only">المدفوعات</caption>
<thead>
<tr>
<th>
<input type="checkbox" class="input" aria-label="تحديد الصفوف المرئية" />
</th>
<th>الحالة</th>
<th>
<button type="button" class="btn" data-variant="ghost" data-size="sm" data-sort="2">
البريد الإلكتروني
<svg aria-hidden="true" class="lucide lucide-arrow-up-down" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" > <path d="m21 16-4 4-4-4" /> <path d="M17 20V4" /> <path d="m3 8 4-4 4 4" /> <path d="M7 4v16" /> </svg>
</button>
</th>
<th class="text-end">المبلغ</th>
<th><span class="sr-only">الإجراءات</span></th>
</tr>
</thead>
<tbody>
<tr data-payment-id="m5gr84i9">
<td>
<input type="checkbox" class="input" value="m5gr84i9" aria-label="تحديد ken99@example.com" />
</td>
<td class="capitalize">ناجح</td>
<td><bdi>ken99@example.com</bdi></td>
<td class="text-end font-medium"><bdi>$316.00</bdi></td>
<td>
<div class="dropdown-menu">
<button type="button" class="btn" data-variant="ghost" data-size="icon-xs" aria-label="إجراءات ken99@example.com" aria-haspopup="menu" aria-expanded="false" aria-controls="payments-rtl-m5gr84i9-menu">
<svg aria-hidden="true" class="lucide lucide-ellipsis" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" > <circle cx="12" cy="12" r="1" /> <circle cx="19" cy="12" r="1" /> <circle cx="5" cy="12" r="1" /> </svg>
</button>
<div data-popover data-side="inline-start" data-align="end" aria-hidden="true" class="w-44">
<div role="menu" id="payments-rtl-m5gr84i9-menu" aria-label="إجراءات الدفع">
<div role="group" aria-label="الإجراءات">
<div role="heading" aria-level="3">الإجراءات</div>
<button type="button" role="menuitem" data-copy-payment>نسخ معرف الدفع</button>
</div>
<hr />
<div role="group">
<button type="button" role="menuitem" data-customer="ken99@example.com">عرض العميل</button>
<button type="button" role="menuitem" data-payment-details>عرض تفاصيل الدفع</button>
</div>
</div>
</div>
</div>
</td>
</tr>
<tr data-payment-id="3u1reuv4">
<td>
<input type="checkbox" class="input" value="3u1reuv4" aria-label="تحديد Abe45@example.com" />
</td>
<td class="capitalize">ناجح</td>
<td><bdi>Abe45@example.com</bdi></td>
<td class="text-end font-medium"><bdi>$242.00</bdi></td>
<td>
<div class="dropdown-menu">
<button type="button" class="btn" data-variant="ghost" data-size="icon-xs" aria-label="إجراءات Abe45@example.com" aria-haspopup="menu" aria-expanded="false" aria-controls="payments-rtl-3u1reuv4-menu">
<svg aria-hidden="true" class="lucide lucide-ellipsis" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" > <circle cx="12" cy="12" r="1" /> <circle cx="19" cy="12" r="1" /> <circle cx="5" cy="12" r="1" /> </svg>
</button>
<div data-popover data-side="inline-start" data-align="end" aria-hidden="true" class="w-44">
<div role="menu" id="payments-rtl-3u1reuv4-menu" aria-label="إجراءات الدفع">
<div role="group" aria-label="الإجراءات">
<div role="heading" aria-level="3">الإجراءات</div>
<button type="button" role="menuitem" data-copy-payment>نسخ معرف الدفع</button>
</div>
<hr />
<div role="group">
<button type="button" role="menuitem" data-customer="Abe45@example.com">عرض العميل</button>
<button type="button" role="menuitem" data-payment-details>عرض تفاصيل الدفع</button>
</div>
</div>
</div>
</div>
</td>
</tr>
<tr data-payment-id="derv1ws0">
<td>
<input type="checkbox" class="input" value="derv1ws0" aria-label="تحديد Monserrat44@example.com" />
</td>
<td class="capitalize">قيد المعالجة</td>
<td><bdi>Monserrat44@example.com</bdi></td>
<td class="text-end font-medium"><bdi>$837.00</bdi></td>
<td>
<div class="dropdown-menu">
<button type="button" class="btn" data-variant="ghost" data-size="icon-xs" aria-label="إجراءات Monserrat44@example.com" aria-haspopup="menu" aria-expanded="false" aria-controls="payments-rtl-derv1ws0-menu">
<svg aria-hidden="true" class="lucide lucide-ellipsis" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" > <circle cx="12" cy="12" r="1" /> <circle cx="19" cy="12" r="1" /> <circle cx="5" cy="12" r="1" /> </svg>
</button>
<div data-popover data-side="inline-start" data-align="end" aria-hidden="true" class="w-44">
<div role="menu" id="payments-rtl-derv1ws0-menu" aria-label="إجراءات الدفع">
<div role="group" aria-label="الإجراءات">
<div role="heading" aria-level="3">الإجراءات</div>
<button type="button" role="menuitem" data-copy-payment>نسخ معرف الدفع</button>
</div>
<hr />
<div role="group">
<button type="button" role="menuitem" data-customer="Monserrat44@example.com">عرض العميل</button>
<button type="button" role="menuitem" data-payment-details>عرض تفاصيل الدفع</button>
</div>
</div>
</div>
</div>
</td>
</tr>
<tr data-payment-id="5kma53ae">
<td>
<input type="checkbox" class="input" value="5kma53ae" aria-label="تحديد Silas22@example.com" />
</td>
<td class="capitalize">ناجح</td>
<td><bdi>Silas22@example.com</bdi></td>
<td class="text-end font-medium"><bdi>$874.00</bdi></td>
<td>
<div class="dropdown-menu">
<button type="button" class="btn" data-variant="ghost" data-size="icon-xs" aria-label="إجراءات Silas22@example.com" aria-haspopup="menu" aria-expanded="false" aria-controls="payments-rtl-5kma53ae-menu">
<svg aria-hidden="true" class="lucide lucide-ellipsis" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" > <circle cx="12" cy="12" r="1" /> <circle cx="19" cy="12" r="1" /> <circle cx="5" cy="12" r="1" /> </svg>
</button>
<div data-popover data-side="inline-start" data-align="end" aria-hidden="true" class="w-44">
<div role="menu" id="payments-rtl-5kma53ae-menu" aria-label="إجراءات الدفع">
<div role="group" aria-label="الإجراءات">
<div role="heading" aria-level="3">الإجراءات</div>
<button type="button" role="menuitem" data-copy-payment>نسخ معرف الدفع</button>
</div>
<hr />
<div role="group">
<button type="button" role="menuitem" data-customer="Silas22@example.com">عرض العميل</button>
<button type="button" role="menuitem" data-payment-details>عرض تفاصيل الدفع</button>
</div>
</div>
</div>
</div>
</td>
</tr>
<tr data-payment-id="bhqecj4p">
<td>
<input type="checkbox" class="input" value="bhqecj4p" aria-label="تحديد carmella@example.com" />
</td>
<td class="capitalize">فشل</td>
<td><bdi>carmella@example.com</bdi></td>
<td class="text-end font-medium"><bdi>$721.00</bdi></td>
<td>
<div class="dropdown-menu">
<button type="button" class="btn" data-variant="ghost" data-size="icon-xs" aria-label="إجراءات carmella@example.com" aria-haspopup="menu" aria-expanded="false" aria-controls="payments-rtl-bhqecj4p-menu">
<svg aria-hidden="true" class="lucide lucide-ellipsis" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" > <circle cx="12" cy="12" r="1" /> <circle cx="19" cy="12" r="1" /> <circle cx="5" cy="12" r="1" /> </svg>
</button>
<div data-popover data-side="inline-start" data-align="end" aria-hidden="true" class="w-44">
<div role="menu" id="payments-rtl-bhqecj4p-menu" aria-label="إجراءات الدفع">
<div role="group" aria-label="الإجراءات">
<div role="heading" aria-level="3">الإجراءات</div>
<button type="button" role="menuitem" data-copy-payment>نسخ معرف الدفع</button>
</div>
<hr />
<div role="group">
<button type="button" role="menuitem" data-customer="carmella@example.com">عرض العميل</button>
<button type="button" role="menuitem" data-payment-details>عرض تفاصيل الدفع</button>
</div>
</div>
</div>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<div class="flex flex-wrap items-center justify-between gap-3 text-sm" data-table-controls inert>
<span class="text-muted-foreground" data-selection-count aria-live="polite">تم تحديد 0 من 5 صفوف.</span>
<div class="flex items-center gap-2">
<span class="text-muted-foreground" data-page-count aria-live="polite">الصفحة 1 من 2</span>
<button type="button" class="btn" data-variant="outline" data-size="sm" data-previous>السابق</button>
<button type="button" class="btn" data-variant="outline" data-size="sm" data-next>التالي</button>
</div>
</div>
<output class="sr-only"></output>
</div>
<style>
[data-payments-example] td.datatable-empty {
height: 6rem;
text-align: center;
}
/* Reserve the first page until the table initializes. */
@media (scripting: enabled) {
[data-payments-example]:has([data-table-controls][inert]) tbody tr:nth-child(3) { border-bottom-width: 0; }
[data-payments-example]:has([data-table-controls][inert]) tbody tr:nth-child(n+4) { display: none; }
}
@media (scripting: none) {
[data-payments-example] [data-table-controls] { display: none; }
}
</style>