Tailwind CSS Table Examples
A growing collection of table examples for Tailwind CSS. Copy and paste the HTML into your project and adjust it with utility classes.
<section class="card card-sm w-full">
<div class="card-header border-b">
<h2 class="card-title text-base">Customers</h2>
<p class="card-description">Accounts across all plans, newest first.</p>
<div class="card-action hidden gap-2 self-end sm:flex">
<button type="button" class="btn btn-outline btn-sm">
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
class="icon-start"
>
<path d="M12 15V3"></path>
<path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"></path>
<path d="m7 10 5 5 5-5"></path></svg
>Export</button
><button type="button" class="btn btn-sm">
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
class="icon-start"
>
<path d="M5 12h14"></path>
<path d="M12 5v14"></path></svg
>Add customer
</button>
</div>
</div>
<div class="card-content">
<div class="flex items-center gap-2 sm:hidden">
<input
class="input input-sm flex-1"
placeholder="Filter customers..."
aria-label="Filter customers..."
/><button
type="button"
class="btn btn-outline btn-sm"
id="data-table-filters"
>
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
class="icon-start"
>
<path d="M2 5h20"></path>
<path d="M6 12h12"></path>
<path d="M9 19h6"></path></svg
>Filters<span
class="badge h-4 min-w-4 rounded-full px-1 tabular-nums"
hidden=""
data-facet-count=""
>0</span
></button
><button
type="button"
class="btn btn-sm btn-icon"
aria-label="Add customer"
>
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<path d="M5 12h14"></path>
<path d="M12 5v14"></path>
</svg>
</button>
</div>
<dialog class="drawer" data-sp-toggle="#data-table-filters" data-facet="">
<div class="drawer-panel">
<div class="drawer-header">
<h2 class="drawer-title">Filters</h2>
<p class="drawer-description">Narrow the list by status and plan.</p>
</div>
<div class="drawer-content">
<div class="field-group">
<fieldset class="field-set">
<legend
class="field-legend field-legend-label text-muted-foreground"
>
Status
</legend>
<div class="flex flex-wrap gap-2">
<label
class="btn btn-outline rounded-full px-3 has-checked:border-primary has-checked:bg-primary/5 has-checked:text-primary has-focus-visible:border-ring has-focus-visible:ring-3 has-focus-visible:ring-ring/50"
><input
type="checkbox"
class="sr-only"
name="status"
value="Active"
/><span class="badge-dot bg-emerald-500"></span>Active</label
><label
class="btn btn-outline rounded-full px-3 has-checked:border-primary has-checked:bg-primary/5 has-checked:text-primary has-focus-visible:border-ring has-focus-visible:ring-3 has-focus-visible:ring-ring/50"
><input
type="checkbox"
class="sr-only"
name="status"
value="Trialing"
/><span class="badge-dot bg-blue-500"></span>Trialing</label
><label
class="btn btn-outline rounded-full px-3 has-checked:border-primary has-checked:bg-primary/5 has-checked:text-primary has-focus-visible:border-ring has-focus-visible:ring-3 has-focus-visible:ring-ring/50"
><input
type="checkbox"
class="sr-only"
name="status"
value="Past due"
/><span class="badge-dot bg-amber-500"></span>Past due</label
><label
class="btn btn-outline rounded-full px-3 has-checked:border-primary has-checked:bg-primary/5 has-checked:text-primary has-focus-visible:border-ring has-focus-visible:ring-3 has-focus-visible:ring-ring/50"
><input
type="checkbox"
class="sr-only"
name="status"
value="Canceled"
/><span class="badge-dot bg-neutral-400"></span
>Canceled</label
>
</div>
</fieldset>
<fieldset class="field-set">
<legend
class="field-legend field-legend-label text-muted-foreground"
>
Plan
</legend>
<div class="flex flex-wrap gap-2">
<label
class="btn btn-outline rounded-full px-3 has-checked:border-primary has-checked:bg-primary/5 has-checked:text-primary has-focus-visible:border-ring has-focus-visible:ring-3 has-focus-visible:ring-ring/50"
><input
type="checkbox"
class="sr-only"
name="plan"
value="Starter"
/><span class="flex items-end gap-0.5" aria-hidden="true"
><span class="w-1 rounded-[1px] h-1.5 bg-foreground"></span
><span class="w-1 rounded-[1px] h-2.5 bg-border"></span
><span
class="w-1 rounded-[1px] h-3.5 bg-border"
></span></span
>Starter</label
><label
class="btn btn-outline rounded-full px-3 has-checked:border-primary has-checked:bg-primary/5 has-checked:text-primary has-focus-visible:border-ring has-focus-visible:ring-3 has-focus-visible:ring-ring/50"
><input
type="checkbox"
class="sr-only"
name="plan"
value="Pro"
/><span class="flex items-end gap-0.5" aria-hidden="true"
><span class="w-1 rounded-[1px] h-1.5 bg-foreground"></span
><span class="w-1 rounded-[1px] h-2.5 bg-foreground"></span
><span
class="w-1 rounded-[1px] h-3.5 bg-border"
></span></span
>Pro</label
><label
class="btn btn-outline rounded-full px-3 has-checked:border-primary has-checked:bg-primary/5 has-checked:text-primary has-focus-visible:border-ring has-focus-visible:ring-3 has-focus-visible:ring-ring/50"
><input
type="checkbox"
class="sr-only"
name="plan"
value="Enterprise"
/><span class="flex items-end gap-0.5" aria-hidden="true"
><span class="w-1 rounded-[1px] h-1.5 bg-foreground"></span
><span class="w-1 rounded-[1px] h-2.5 bg-foreground"></span
><span
class="w-1 rounded-[1px] h-3.5 bg-foreground"
></span></span
>Enterprise</label
>
</div>
</fieldset>
</div>
</div>
<div class="drawer-footer flex-row pt-6">
<button
type="button"
class="btn btn-secondary flex-1"
data-reset-filters=""
>
Reset</button
><button type="button" class="btn flex-1" data-sp-dismiss="">
Show 24 results
</button>
</div>
</div>
</dialog>
<div class="hidden flex-wrap items-center justify-between gap-2 sm:flex">
<div class="flex flex-wrap items-center gap-2">
<input
class="input input-sm w-64"
placeholder="Filter customers..."
aria-label="Filter customers..."
/><button
type="button"
class="btn btn-outline btn-sm"
id="data-table-status"
>
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
class="icon-start"
>
<circle cx="12" cy="12" r="10"></circle>
<path d="M8 12h8"></path>
<path d="M12 8v8"></path></svg
>Status<span
class="badge h-4 min-w-4 rounded-full px-1 tabular-nums"
hidden=""
data-facet-count=""
>0</span
>
</button>
<div
class="dropdown"
data-sp-toggle="#data-table-status"
data-sp-placement="bottom-start"
data-facet=""
>
<div class="dropdown-label">Status</div>
<div class="dropdown-item dropdown-item-checkbox">
<input type="checkbox" name="status" value="Active" /><span
class="badge-dot bg-emerald-500"
></span
>Active
</div>
<div class="dropdown-item dropdown-item-checkbox">
<input type="checkbox" name="status" value="Trialing" /><span
class="badge-dot bg-blue-500"
></span
>Trialing
</div>
<div class="dropdown-item dropdown-item-checkbox">
<input type="checkbox" name="status" value="Past due" /><span
class="badge-dot bg-amber-500"
></span
>Past due
</div>
<div class="dropdown-item dropdown-item-checkbox">
<input type="checkbox" name="status" value="Canceled" /><span
class="badge-dot bg-neutral-400"
></span
>Canceled
</div>
</div>
<button
type="button"
class="btn btn-outline btn-sm"
id="data-table-plan"
>
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
class="icon-start"
>
<circle cx="12" cy="12" r="10"></circle>
<path d="M8 12h8"></path>
<path d="M12 8v8"></path></svg
>Plan<span
class="badge h-4 min-w-4 rounded-full px-1 tabular-nums"
hidden=""
data-facet-count=""
>0</span
>
</button>
<div
class="dropdown"
data-sp-toggle="#data-table-plan"
data-sp-placement="bottom-start"
data-facet=""
>
<div class="dropdown-label">Plan</div>
<div class="dropdown-item dropdown-item-checkbox">
<input type="checkbox" name="plan" value="Starter" /><span
class="flex items-end gap-0.5"
aria-hidden="true"
><span class="w-1 rounded-[1px] h-1.5 bg-foreground"></span
><span class="w-1 rounded-[1px] h-2.5 bg-border"></span
><span class="w-1 rounded-[1px] h-3.5 bg-border"></span></span
>Starter
</div>
<div class="dropdown-item dropdown-item-checkbox">
<input type="checkbox" name="plan" value="Pro" /><span
class="flex items-end gap-0.5"
aria-hidden="true"
><span class="w-1 rounded-[1px] h-1.5 bg-foreground"></span
><span class="w-1 rounded-[1px] h-2.5 bg-foreground"></span
><span class="w-1 rounded-[1px] h-3.5 bg-border"></span></span
>Pro
</div>
<div class="dropdown-item dropdown-item-checkbox">
<input type="checkbox" name="plan" value="Enterprise" /><span
class="flex items-end gap-0.5"
aria-hidden="true"
><span class="w-1 rounded-[1px] h-1.5 bg-foreground"></span
><span class="w-1 rounded-[1px] h-2.5 bg-foreground"></span
><span class="w-1 rounded-[1px] h-3.5 bg-foreground"></span></span
>Enterprise
</div>
</div>
<button
type="button"
class="btn btn-ghost btn-sm"
hidden=""
data-reset-filters=""
>
Reset<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
class="icon-end"
>
<path d="M18 6 6 18"></path>
<path d="m6 6 12 12"></path>
</svg>
</button>
</div>
<div class="flex gap-2">
<button
type="button"
class="btn btn-outline btn-sm"
id="data-table-view"
>
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
class="icon-start"
>
<path d="M10 5H3"></path>
<path d="M12 19H3"></path>
<path d="M14 3v4"></path>
<path d="M16 17v4"></path>
<path d="M21 12h-9"></path>
<path d="M21 19h-5"></path>
<path d="M21 5h-7"></path>
<path d="M8 10v4"></path>
<path d="M8 12H3"></path></svg
>View
</button>
<div
class="dropdown"
data-sp-toggle="#data-table-view"
data-sp-placement="bottom-end"
>
<div class="dropdown-label">Toggle columns</div>
<div class="dropdown-item dropdown-item-checkbox">
<input type="checkbox" name="data-table-view-plan" checked="" />Plan
</div>
<div class="dropdown-item dropdown-item-checkbox">
<input
type="checkbox"
name="data-table-view-seats"
checked=""
/>Seats
</div>
<div class="dropdown-item dropdown-item-checkbox">
<input
type="checkbox"
name="data-table-view-status"
checked=""
/>Status
</div>
<div class="dropdown-item dropdown-item-checkbox">
<input type="checkbox" name="data-table-view-mrr" checked="" />MRR
</div>
<div class="dropdown-item dropdown-item-checkbox">
<input
type="checkbox"
name="data-table-view-renews"
checked=""
/>Renews
</div>
<div class="dropdown-item dropdown-item-checkbox">
<input
type="checkbox"
name="data-table-view-signed-up"
checked=""
/>Signed up
</div>
</div>
</div>
</div>
</div>
<div class="table-container border-y scrollbar scrollbar-sm">
<table class="table table-lg">
<thead class="table-header">
<tr class="table-row">
<th class="table-head ps-4 w-10">
<input
type="checkbox"
class="checkbox"
aria-label="Select all customers"
data-sp-toggle-all=""
/>
</th>
<th class="table-head">
<button type="button" class="btn btn-ghost btn-sm -ms-3">
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
class="size-3.5"
>
<circle cx="12" cy="8" r="5"></circle>
<path d="M20 21a8 8 0 0 0-16 0"></path></svg
>Customer<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
class="icon-end"
>
<path d="m21 16-4 4-4-4"></path>
<path d="M17 20V4"></path>
<path d="m3 8 4-4 4 4"></path>
<path d="M7 4v16"></path>
</svg>
</button>
</th>
<th class="table-head">
<span class="inline-flex items-center gap-1.5"
><svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
class="size-3.5"
>
<path
d="M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z"
></path>
<path
d="M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12"
></path>
<path
d="M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17"
></path></svg
>Plan</span
>
</th>
<th class="table-head text-end">
<span class="inline-flex items-center gap-1.5"
><svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
class="size-3.5"
>
<path d="M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2"></path>
<path d="M16 3.128a4 4 0 0 1 0 7.744"></path>
<path d="M22 21v-2a4 4 0 0 0-3-3.87"></path>
<circle cx="9" cy="7" r="4"></circle></svg
>Seats</span
>
</th>
<th class="table-head ps-10">
<span class="inline-flex items-center gap-1.5"
><svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
class="size-3.5"
>
<path
d="M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2"
></path></svg
>Status</span
>
</th>
<th class="table-head text-end">
<button type="button" class="btn btn-ghost btn-sm -me-3">
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
class="size-3.5"
>
<circle cx="12" cy="12" r="10"></circle>
<path d="M16 8h-6a2 2 0 1 0 0 4h4a2 2 0 1 1 0 4H8"></path>
<path d="M12 18V6"></path></svg
>MRR<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
class="icon-end"
>
<path d="m21 16-4 4-4-4"></path>
<path d="M17 20V4"></path>
<path d="m3 8 4-4 4 4"></path>
<path d="M7 4v16"></path>
</svg>
</button>
</th>
<th class="table-head ps-6">
<span class="inline-flex items-center gap-1.5"
><svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
class="size-3.5"
>
<path d="M16 14v2.2l1.6 1"></path>
<path d="M16 2v3"></path>
<path
d="M21 7.338V5a2 2 0 00-2-2H5a2 2 0 00-2 2v14a2 2 0 002 2h2.338"
></path>
<path d="M3 9h5.859"></path>
<path d="M8 2v3"></path>
<circle cx="16" cy="16" r="6"></circle></svg
>Renews</span
>
</th>
<th class="table-head">
<span class="inline-flex items-center gap-1.5"
><svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
class="size-3.5"
>
<path d="M16 18h6"></path>
<path d="M16 2v3"></path>
<path d="M19 15v6"></path>
<path
d="M21 11.5V5a2 2 0 00-2-2H5a2 2 0 00-2 2v14a2 2 0 002 2h8.3"
></path>
<path d="M3 9h18"></path>
<path d="M8 2v3"></path></svg
>Signed up</span
>
</th>
<th class="table-head pe-4 w-12">
<span class="sr-only">Actions</span>
</th>
</tr>
</thead>
<tbody class="table-body">
<tr class="table-row">
<td class="table-cell ps-4">
<input
type="checkbox"
class="checkbox"
aria-label="Select Leila Navarro"
/>
</td>
<td class="table-cell">
<div class="flex items-center gap-3">
<span class="avatar"
><img
class="avatar-image"
alt=""
src="https://images.unsplash.com/photo-1750390200282-bf7f669a9946?w=640&h=640&fit=facearea&facepad=3.2&auto=format&q=100&bg-remove=true&bg=bfdbfe"
/><span class="avatar-fallback">LN</span></span
>
<div class="flex flex-col">
<span class="font-medium">Leila Navarro</span
><span class="text-xs text-muted-foreground"
>[email protected]</span
>
</div>
</div>
</td>
<td class="table-cell">
<span class="inline-flex items-center gap-2 font-medium"
><span class="flex items-end gap-0.5" aria-hidden="true"
><span class="w-1 rounded-[1px] h-1.5 bg-foreground"></span
><span class="w-1 rounded-[1px] h-2.5 bg-foreground"></span
><span class="w-1 rounded-[1px] h-3.5 bg-border"></span></span
>Pro</span
>
</td>
<td class="table-cell text-end tabular-nums">12</td>
<td class="table-cell ps-10">
<span class="badge badge-outline badge-square"
><span class="badge-dot bg-emerald-500"></span>Active</span
>
</td>
<td class="table-cell text-end font-medium tabular-nums">$588</td>
<td class="table-cell ps-6 text-muted-foreground">Nov 2, 2026</td>
<td class="table-cell text-muted-foreground">Oct 2, 2026</td>
<td class="table-cell pe-4">
<button
type="button"
class="btn btn-ghost btn-sm btn-icon text-muted-foreground"
id="data-table-0-menu"
aria-label="Open menu for Leila Navarro"
>
<svg
xmlns="http://www.w3.org/2000/svg"
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>
<circle cx="19" cy="12" r="1"></circle>
<circle cx="5" cy="12" r="1"></circle>
</svg>
</button>
<div
class="dropdown"
data-sp-toggle="#data-table-0-menu"
data-sp-placement="bottom-end"
>
<button type="button" class="dropdown-item">
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<circle cx="12" cy="8" r="5"></circle>
<path d="M20 21a8 8 0 0 0-16 0"></path></svg
>View customer</button
><button type="button" class="dropdown-item">
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<path d="m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7"></path>
<rect x="2" y="4" width="20" height="16" rx="2"></rect></svg
>Copy email</button
><button
type="button"
class="dropdown-item"
id="data-table-0-plan"
>
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<path d="m17 2 4 4-4 4"></path>
<path d="M3 11v-1a4 4 0 0 1 4-4h14"></path>
<path d="m7 22-4-4 4-4"></path>
<path d="M21 13v1a4 4 0 0 1-4 4H3"></path></svg
>Change plan<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
class="ms-auto"
>
<path d="m9 18 6-6-6-6"></path>
</svg></button
><button type="button" class="dropdown-item">
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<rect width="20" height="14" x="2" y="5" rx="2"></rect>
<line x1="2" x2="22" y1="10" y2="10"></line>
<path d="M6 14h2"></path></svg
>View invoices
</button>
<div class="dropdown-separator"></div>
<button
type="button"
class="dropdown-item dropdown-item-destructive"
>
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<path d="M18 6 6 18"></path>
<path d="m6 6 12 12"></path></svg
>Cancel subscription</button
><button
type="button"
class="dropdown-item dropdown-item-destructive"
>
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<path d="M10 11v6"></path>
<path d="M14 11v6"></path>
<path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6"></path>
<path d="M3 6h18"></path>
<path d="M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"></path></svg
>Delete customer
</button>
</div>
<div
class="dropdown dropdown-sub"
data-sp-toggle="#data-table-0-plan"
data-sp-placement="inline-end-start"
data-sp-mode="hover"
>
<div class="dropdown-item dropdown-item-radio">
<input
type="radio"
name="data-table-0-plan"
value="Starter"
/>Starter
</div>
<div class="dropdown-item dropdown-item-radio">
<input
type="radio"
name="data-table-0-plan"
checked=""
value="Pro"
/>Pro
</div>
<div class="dropdown-item dropdown-item-radio">
<input
type="radio"
name="data-table-0-plan"
value="Enterprise"
/>Enterprise
</div>
</div>
</td>
</tr>
<tr class="table-row">
<td class="table-cell ps-4">
<input
type="checkbox"
class="checkbox"
aria-label="Select Maya Santoso"
/>
</td>
<td class="table-cell">
<div class="flex items-center gap-3">
<span class="avatar"
><img
class="avatar-image"
alt=""
src="https://images.unsplash.com/photo-1573497019236-17f8177b81e8?w=640&h=640&fit=facearea&facepad=3.2&auto=format&q=100&bg-remove=true&bg=a7f3d0"
/><span class="avatar-fallback">MS</span></span
>
<div class="flex flex-col">
<span class="font-medium">Maya Santoso</span
><span class="text-xs text-muted-foreground"
>[email protected]</span
>
</div>
</div>
</td>
<td class="table-cell">
<span class="inline-flex items-center gap-2 font-medium"
><span class="flex items-end gap-0.5" aria-hidden="true"
><span class="w-1 rounded-[1px] h-1.5 bg-foreground"></span
><span class="w-1 rounded-[1px] h-2.5 bg-foreground"></span
><span class="w-1 rounded-[1px] h-3.5 bg-border"></span></span
>Pro</span
>
</td>
<td class="table-cell text-end tabular-nums">3</td>
<td class="table-cell ps-10">
<span class="badge badge-outline badge-square"
><span class="badge-dot bg-blue-500"></span>Trialing</span
>
</td>
<td class="table-cell text-end font-medium tabular-nums">$0</td>
<td class="table-cell ps-6 text-muted-foreground">Oct 15, 2026</td>
<td class="table-cell text-muted-foreground">Oct 1, 2026</td>
<td class="table-cell pe-4">
<button
type="button"
class="btn btn-ghost btn-sm btn-icon text-muted-foreground"
id="data-table-1-menu"
aria-label="Open menu for Maya Santoso"
>
<svg
xmlns="http://www.w3.org/2000/svg"
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>
<circle cx="19" cy="12" r="1"></circle>
<circle cx="5" cy="12" r="1"></circle>
</svg>
</button>
<div
class="dropdown"
data-sp-toggle="#data-table-1-menu"
data-sp-placement="bottom-end"
>
<button type="button" class="dropdown-item">
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<circle cx="12" cy="8" r="5"></circle>
<path d="M20 21a8 8 0 0 0-16 0"></path></svg
>View customer</button
><button type="button" class="dropdown-item">
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<path d="m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7"></path>
<rect x="2" y="4" width="20" height="16" rx="2"></rect></svg
>Copy email</button
><button
type="button"
class="dropdown-item"
id="data-table-1-plan"
>
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<path d="m17 2 4 4-4 4"></path>
<path d="M3 11v-1a4 4 0 0 1 4-4h14"></path>
<path d="m7 22-4-4 4-4"></path>
<path d="M21 13v1a4 4 0 0 1-4 4H3"></path></svg
>Change plan<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
class="ms-auto"
>
<path d="m9 18 6-6-6-6"></path>
</svg></button
><button type="button" class="dropdown-item">
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<rect width="20" height="14" x="2" y="5" rx="2"></rect>
<line x1="2" x2="22" y1="10" y2="10"></line>
<path d="M6 14h2"></path></svg
>View invoices
</button>
<div class="dropdown-separator"></div>
<button
type="button"
class="dropdown-item dropdown-item-destructive"
>
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<path d="M18 6 6 18"></path>
<path d="m6 6 12 12"></path></svg
>Cancel subscription</button
><button
type="button"
class="dropdown-item dropdown-item-destructive"
>
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<path d="M10 11v6"></path>
<path d="M14 11v6"></path>
<path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6"></path>
<path d="M3 6h18"></path>
<path d="M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"></path></svg
>Delete customer
</button>
</div>
<div
class="dropdown dropdown-sub"
data-sp-toggle="#data-table-1-plan"
data-sp-placement="inline-end-start"
data-sp-mode="hover"
>
<div class="dropdown-item dropdown-item-radio">
<input
type="radio"
name="data-table-1-plan"
value="Starter"
/>Starter
</div>
<div class="dropdown-item dropdown-item-radio">
<input
type="radio"
name="data-table-1-plan"
checked=""
value="Pro"
/>Pro
</div>
<div class="dropdown-item dropdown-item-radio">
<input
type="radio"
name="data-table-1-plan"
value="Enterprise"
/>Enterprise
</div>
</div>
</td>
</tr>
<tr class="table-row">
<td class="table-cell ps-4">
<input
type="checkbox"
class="checkbox"
aria-label="Select Sofia Lindqvist"
/>
</td>
<td class="table-cell">
<div class="flex items-center gap-3">
<span class="avatar"
><img
class="avatar-image"
alt=""
src="https://images.unsplash.com/photo-1573497019940-1c28c88b4f3e?w=640&h=640&fit=facearea&facepad=3.2&auto=format&q=100&bg-remove=true&bg=fde68a"
/><span class="avatar-fallback">SL</span></span
>
<div class="flex flex-col">
<span class="font-medium">Sofia Lindqvist</span
><span class="text-xs text-muted-foreground"
>[email protected]</span
>
</div>
</div>
</td>
<td class="table-cell">
<span class="inline-flex items-center gap-2 font-medium"
><span class="flex items-end gap-0.5" aria-hidden="true"
><span class="w-1 rounded-[1px] h-1.5 bg-foreground"></span
><span class="w-1 rounded-[1px] h-2.5 bg-foreground"></span
><span
class="w-1 rounded-[1px] h-3.5 bg-foreground"
></span></span
>Enterprise</span
>
</td>
<td class="table-cell text-end tabular-nums">85</td>
<td class="table-cell ps-10">
<span class="badge badge-outline badge-square"
><span class="badge-dot bg-emerald-500"></span>Active</span
>
</td>
<td class="table-cell text-end font-medium tabular-nums">$6,715</td>
<td class="table-cell ps-6 text-muted-foreground">Sep 29, 2027</td>
<td class="table-cell text-muted-foreground">Sep 29, 2026</td>
<td class="table-cell pe-4">
<button
type="button"
class="btn btn-ghost btn-sm btn-icon text-muted-foreground"
id="data-table-2-menu"
aria-label="Open menu for Sofia Lindqvist"
>
<svg
xmlns="http://www.w3.org/2000/svg"
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>
<circle cx="19" cy="12" r="1"></circle>
<circle cx="5" cy="12" r="1"></circle>
</svg>
</button>
<div
class="dropdown"
data-sp-toggle="#data-table-2-menu"
data-sp-placement="bottom-end"
>
<button type="button" class="dropdown-item">
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<circle cx="12" cy="8" r="5"></circle>
<path d="M20 21a8 8 0 0 0-16 0"></path></svg
>View customer</button
><button type="button" class="dropdown-item">
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<path d="m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7"></path>
<rect x="2" y="4" width="20" height="16" rx="2"></rect></svg
>Copy email</button
><button
type="button"
class="dropdown-item"
id="data-table-2-plan"
>
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<path d="m17 2 4 4-4 4"></path>
<path d="M3 11v-1a4 4 0 0 1 4-4h14"></path>
<path d="m7 22-4-4 4-4"></path>
<path d="M21 13v1a4 4 0 0 1-4 4H3"></path></svg
>Change plan<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
class="ms-auto"
>
<path d="m9 18 6-6-6-6"></path>
</svg></button
><button type="button" class="dropdown-item">
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<rect width="20" height="14" x="2" y="5" rx="2"></rect>
<line x1="2" x2="22" y1="10" y2="10"></line>
<path d="M6 14h2"></path></svg
>View invoices
</button>
<div class="dropdown-separator"></div>
<button
type="button"
class="dropdown-item dropdown-item-destructive"
>
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<path d="M18 6 6 18"></path>
<path d="m6 6 12 12"></path></svg
>Cancel subscription</button
><button
type="button"
class="dropdown-item dropdown-item-destructive"
>
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<path d="M10 11v6"></path>
<path d="M14 11v6"></path>
<path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6"></path>
<path d="M3 6h18"></path>
<path d="M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"></path></svg
>Delete customer
</button>
</div>
<div
class="dropdown dropdown-sub"
data-sp-toggle="#data-table-2-plan"
data-sp-placement="inline-end-start"
data-sp-mode="hover"
>
<div class="dropdown-item dropdown-item-radio">
<input
type="radio"
name="data-table-2-plan"
value="Starter"
/>Starter
</div>
<div class="dropdown-item dropdown-item-radio">
<input type="radio" name="data-table-2-plan" value="Pro" />Pro
</div>
<div class="dropdown-item dropdown-item-radio">
<input
type="radio"
name="data-table-2-plan"
checked=""
value="Enterprise"
/>Enterprise
</div>
</div>
</td>
</tr>
<tr class="table-row">
<td class="table-cell ps-4">
<input
type="checkbox"
class="checkbox"
aria-label="Select Anouk Visser"
/>
</td>
<td class="table-cell">
<div class="flex items-center gap-3">
<span class="avatar"
><img
class="avatar-image"
alt=""
src="https://images.unsplash.com/photo-1513673054901-2b5f51551112?w=640&h=640&fit=facearea&facepad=3.2&auto=format&q=100&bg-remove=true&bg=fecdd3"
/><span class="avatar-fallback">AV</span></span
>
<div class="flex flex-col">
<span class="font-medium">Anouk Visser</span
><span class="text-xs text-muted-foreground"
>[email protected]</span
>
</div>
</div>
</td>
<td class="table-cell">
<span class="inline-flex items-center gap-2 font-medium"
><span class="flex items-end gap-0.5" aria-hidden="true"
><span class="w-1 rounded-[1px] h-1.5 bg-foreground"></span
><span class="w-1 rounded-[1px] h-2.5 bg-border"></span
><span class="w-1 rounded-[1px] h-3.5 bg-border"></span></span
>Starter</span
>
</td>
<td class="table-cell text-end tabular-nums">4</td>
<td class="table-cell ps-10">
<span class="badge badge-outline badge-square"
><span class="badge-dot bg-amber-500"></span>Past due</span
>
</td>
<td class="table-cell text-end font-medium tabular-nums">$76</td>
<td class="table-cell ps-6 text-muted-foreground">Sep 27, 2026</td>
<td class="table-cell text-muted-foreground">Sep 27, 2026</td>
<td class="table-cell pe-4">
<button
type="button"
class="btn btn-ghost btn-sm btn-icon text-muted-foreground"
id="data-table-3-menu"
aria-label="Open menu for Anouk Visser"
>
<svg
xmlns="http://www.w3.org/2000/svg"
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>
<circle cx="19" cy="12" r="1"></circle>
<circle cx="5" cy="12" r="1"></circle>
</svg>
</button>
<div
class="dropdown"
data-sp-toggle="#data-table-3-menu"
data-sp-placement="bottom-end"
>
<button type="button" class="dropdown-item">
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<circle cx="12" cy="8" r="5"></circle>
<path d="M20 21a8 8 0 0 0-16 0"></path></svg
>View customer</button
><button type="button" class="dropdown-item">
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<path d="m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7"></path>
<rect x="2" y="4" width="20" height="16" rx="2"></rect></svg
>Copy email</button
><button
type="button"
class="dropdown-item"
id="data-table-3-plan"
>
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<path d="m17 2 4 4-4 4"></path>
<path d="M3 11v-1a4 4 0 0 1 4-4h14"></path>
<path d="m7 22-4-4 4-4"></path>
<path d="M21 13v1a4 4 0 0 1-4 4H3"></path></svg
>Change plan<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
class="ms-auto"
>
<path d="m9 18 6-6-6-6"></path>
</svg></button
><button type="button" class="dropdown-item">
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<rect width="20" height="14" x="2" y="5" rx="2"></rect>
<line x1="2" x2="22" y1="10" y2="10"></line>
<path d="M6 14h2"></path></svg
>View invoices
</button>
<div class="dropdown-separator"></div>
<button
type="button"
class="dropdown-item dropdown-item-destructive"
>
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<path d="M18 6 6 18"></path>
<path d="m6 6 12 12"></path></svg
>Cancel subscription</button
><button
type="button"
class="dropdown-item dropdown-item-destructive"
>
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<path d="M10 11v6"></path>
<path d="M14 11v6"></path>
<path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6"></path>
<path d="M3 6h18"></path>
<path d="M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"></path></svg
>Delete customer
</button>
</div>
<div
class="dropdown dropdown-sub"
data-sp-toggle="#data-table-3-plan"
data-sp-placement="inline-end-start"
data-sp-mode="hover"
>
<div class="dropdown-item dropdown-item-radio">
<input
type="radio"
name="data-table-3-plan"
checked=""
value="Starter"
/>Starter
</div>
<div class="dropdown-item dropdown-item-radio">
<input type="radio" name="data-table-3-plan" value="Pro" />Pro
</div>
<div class="dropdown-item dropdown-item-radio">
<input
type="radio"
name="data-table-3-plan"
value="Enterprise"
/>Enterprise
</div>
</div>
</td>
</tr>
<tr class="table-row">
<td class="table-cell ps-4">
<input
type="checkbox"
class="checkbox"
aria-label="Select Zara Delacroix"
/>
</td>
<td class="table-cell">
<div class="flex items-center gap-3">
<span class="avatar"
><img
class="avatar-image"
alt=""
src="https://images.unsplash.com/photo-1631377307475-9acfa929b062?w=640&h=640&fit=facearea&facepad=3.2&auto=format&q=100&bg-remove=true&bg=bae6fd"
/><span class="avatar-fallback">ZD</span></span
>
<div class="flex flex-col">
<span class="font-medium">Zara Delacroix</span
><span class="text-xs text-muted-foreground"
>[email protected]</span
>
</div>
</div>
</td>
<td class="table-cell">
<span class="inline-flex items-center gap-2 font-medium"
><span class="flex items-end gap-0.5" aria-hidden="true"
><span class="w-1 rounded-[1px] h-1.5 bg-foreground"></span
><span class="w-1 rounded-[1px] h-2.5 bg-border"></span
><span class="w-1 rounded-[1px] h-3.5 bg-border"></span></span
>Starter</span
>
</td>
<td class="table-cell text-end tabular-nums">2</td>
<td class="table-cell ps-10">
<span class="badge badge-outline badge-square"
><span class="badge-dot bg-neutral-400"></span>Canceled</span
>
</td>
<td class="table-cell text-end font-medium tabular-nums">$0</td>
<td class="table-cell ps-6 text-muted-foreground">Ended</td>
<td class="table-cell text-muted-foreground">Sep 21, 2026</td>
<td class="table-cell pe-4">
<button
type="button"
class="btn btn-ghost btn-sm btn-icon text-muted-foreground"
id="data-table-4-menu"
aria-label="Open menu for Zara Delacroix"
>
<svg
xmlns="http://www.w3.org/2000/svg"
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>
<circle cx="19" cy="12" r="1"></circle>
<circle cx="5" cy="12" r="1"></circle>
</svg>
</button>
<div
class="dropdown"
data-sp-toggle="#data-table-4-menu"
data-sp-placement="bottom-end"
>
<button type="button" class="dropdown-item">
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<circle cx="12" cy="8" r="5"></circle>
<path d="M20 21a8 8 0 0 0-16 0"></path></svg
>View customer</button
><button type="button" class="dropdown-item">
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<path d="m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7"></path>
<rect x="2" y="4" width="20" height="16" rx="2"></rect></svg
>Copy email</button
><button
type="button"
class="dropdown-item"
id="data-table-4-plan"
>
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<path d="m17 2 4 4-4 4"></path>
<path d="M3 11v-1a4 4 0 0 1 4-4h14"></path>
<path d="m7 22-4-4 4-4"></path>
<path d="M21 13v1a4 4 0 0 1-4 4H3"></path></svg
>Change plan<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
class="ms-auto"
>
<path d="m9 18 6-6-6-6"></path>
</svg></button
><button type="button" class="dropdown-item">
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<rect width="20" height="14" x="2" y="5" rx="2"></rect>
<line x1="2" x2="22" y1="10" y2="10"></line>
<path d="M6 14h2"></path></svg
>View invoices
</button>
<div class="dropdown-separator"></div>
<button
type="button"
class="dropdown-item dropdown-item-destructive"
>
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<path d="M18 6 6 18"></path>
<path d="m6 6 12 12"></path></svg
>Cancel subscription</button
><button
type="button"
class="dropdown-item dropdown-item-destructive"
>
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<path d="M10 11v6"></path>
<path d="M14 11v6"></path>
<path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6"></path>
<path d="M3 6h18"></path>
<path d="M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"></path></svg
>Delete customer
</button>
</div>
<div
class="dropdown dropdown-sub"
data-sp-toggle="#data-table-4-plan"
data-sp-placement="inline-end-start"
data-sp-mode="hover"
>
<div class="dropdown-item dropdown-item-radio">
<input
type="radio"
name="data-table-4-plan"
checked=""
value="Starter"
/>Starter
</div>
<div class="dropdown-item dropdown-item-radio">
<input type="radio" name="data-table-4-plan" value="Pro" />Pro
</div>
<div class="dropdown-item dropdown-item-radio">
<input
type="radio"
name="data-table-4-plan"
value="Enterprise"
/>Enterprise
</div>
</div>
</td>
</tr>
<tr class="table-row">
<td class="table-cell ps-4">
<input
type="checkbox"
class="checkbox"
aria-label="Select Theo Marchetti"
/>
</td>
<td class="table-cell">
<div class="flex items-center gap-3">
<span class="avatar"
><img
class="avatar-image"
alt=""
src="https://images.unsplash.com/photo-1750390200293-92d5a788d3a2?w=640&h=640&fit=facearea&facepad=3.2&auto=format&q=100&bg-remove=true&bg=99f6e4"
/><span class="avatar-fallback">TM</span></span
>
<div class="flex flex-col">
<span class="font-medium">Theo Marchetti</span
><span class="text-xs text-muted-foreground"
>[email protected]</span
>
</div>
</div>
</td>
<td class="table-cell">
<span class="inline-flex items-center gap-2 font-medium"
><span class="flex items-end gap-0.5" aria-hidden="true"
><span class="w-1 rounded-[1px] h-1.5 bg-foreground"></span
><span class="w-1 rounded-[1px] h-2.5 bg-foreground"></span
><span
class="w-1 rounded-[1px] h-3.5 bg-foreground"
></span></span
>Enterprise</span
>
</td>
<td class="table-cell text-end tabular-nums">140</td>
<td class="table-cell ps-10">
<span class="badge badge-outline badge-square"
><span class="badge-dot bg-emerald-500"></span>Active</span
>
</td>
<td class="table-cell text-end font-medium tabular-nums">$11,060</td>
<td class="table-cell ps-6 text-muted-foreground">Sep 15, 2027</td>
<td class="table-cell text-muted-foreground">Sep 15, 2026</td>
<td class="table-cell pe-4">
<button
type="button"
class="btn btn-ghost btn-sm btn-icon text-muted-foreground"
id="data-table-5-menu"
aria-label="Open menu for Theo Marchetti"
>
<svg
xmlns="http://www.w3.org/2000/svg"
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>
<circle cx="19" cy="12" r="1"></circle>
<circle cx="5" cy="12" r="1"></circle>
</svg>
</button>
<div
class="dropdown"
data-sp-toggle="#data-table-5-menu"
data-sp-placement="bottom-end"
>
<button type="button" class="dropdown-item">
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<circle cx="12" cy="8" r="5"></circle>
<path d="M20 21a8 8 0 0 0-16 0"></path></svg
>View customer</button
><button type="button" class="dropdown-item">
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<path d="m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7"></path>
<rect x="2" y="4" width="20" height="16" rx="2"></rect></svg
>Copy email</button
><button
type="button"
class="dropdown-item"
id="data-table-5-plan"
>
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<path d="m17 2 4 4-4 4"></path>
<path d="M3 11v-1a4 4 0 0 1 4-4h14"></path>
<path d="m7 22-4-4 4-4"></path>
<path d="M21 13v1a4 4 0 0 1-4 4H3"></path></svg
>Change plan<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
class="ms-auto"
>
<path d="m9 18 6-6-6-6"></path>
</svg></button
><button type="button" class="dropdown-item">
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<rect width="20" height="14" x="2" y="5" rx="2"></rect>
<line x1="2" x2="22" y1="10" y2="10"></line>
<path d="M6 14h2"></path></svg
>View invoices
</button>
<div class="dropdown-separator"></div>
<button
type="button"
class="dropdown-item dropdown-item-destructive"
>
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<path d="M18 6 6 18"></path>
<path d="m6 6 12 12"></path></svg
>Cancel subscription</button
><button
type="button"
class="dropdown-item dropdown-item-destructive"
>
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<path d="M10 11v6"></path>
<path d="M14 11v6"></path>
<path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6"></path>
<path d="M3 6h18"></path>
<path d="M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"></path></svg
>Delete customer
</button>
</div>
<div
class="dropdown dropdown-sub"
data-sp-toggle="#data-table-5-plan"
data-sp-placement="inline-end-start"
data-sp-mode="hover"
>
<div class="dropdown-item dropdown-item-radio">
<input
type="radio"
name="data-table-5-plan"
value="Starter"
/>Starter
</div>
<div class="dropdown-item dropdown-item-radio">
<input type="radio" name="data-table-5-plan" value="Pro" />Pro
</div>
<div class="dropdown-item dropdown-item-radio">
<input
type="radio"
name="data-table-5-plan"
checked=""
value="Enterprise"
/>Enterprise
</div>
</div>
</td>
</tr>
<tr class="table-row">
<td class="table-cell ps-4">
<input
type="checkbox"
class="checkbox"
aria-label="Select Luca Moretti"
/>
</td>
<td class="table-cell">
<div class="flex items-center gap-3">
<span class="avatar"
><img
class="avatar-image"
alt=""
src="https://images.unsplash.com/photo-1705645930353-0e335311ef20?w=640&h=640&fit=facearea&facepad=3.2&auto=format&q=100&bg-remove=true&bg=fbcfe8"
/><span class="avatar-fallback">LM</span></span
>
<div class="flex flex-col">
<span class="font-medium">Luca Moretti</span
><span class="text-xs text-muted-foreground"
>[email protected]</span
>
</div>
</div>
</td>
<td class="table-cell">
<span class="inline-flex items-center gap-2 font-medium"
><span class="flex items-end gap-0.5" aria-hidden="true"
><span class="w-1 rounded-[1px] h-1.5 bg-foreground"></span
><span class="w-1 rounded-[1px] h-2.5 bg-border"></span
><span class="w-1 rounded-[1px] h-3.5 bg-border"></span></span
>Starter</span
>
</td>
<td class="table-cell text-end tabular-nums">2</td>
<td class="table-cell ps-10">
<span class="badge badge-outline badge-square"
><span class="badge-dot bg-blue-500"></span>Trialing</span
>
</td>
<td class="table-cell text-end font-medium tabular-nums">$0</td>
<td class="table-cell ps-6 text-muted-foreground">Oct 12, 2026</td>
<td class="table-cell text-muted-foreground">Sep 12, 2026</td>
<td class="table-cell pe-4">
<button
type="button"
class="btn btn-ghost btn-sm btn-icon text-muted-foreground"
id="data-table-6-menu"
aria-label="Open menu for Luca Moretti"
>
<svg
xmlns="http://www.w3.org/2000/svg"
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>
<circle cx="19" cy="12" r="1"></circle>
<circle cx="5" cy="12" r="1"></circle>
</svg>
</button>
<div
class="dropdown"
data-sp-toggle="#data-table-6-menu"
data-sp-placement="bottom-end"
>
<button type="button" class="dropdown-item">
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<circle cx="12" cy="8" r="5"></circle>
<path d="M20 21a8 8 0 0 0-16 0"></path></svg
>View customer</button
><button type="button" class="dropdown-item">
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<path d="m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7"></path>
<rect x="2" y="4" width="20" height="16" rx="2"></rect></svg
>Copy email</button
><button
type="button"
class="dropdown-item"
id="data-table-6-plan"
>
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<path d="m17 2 4 4-4 4"></path>
<path d="M3 11v-1a4 4 0 0 1 4-4h14"></path>
<path d="m7 22-4-4 4-4"></path>
<path d="M21 13v1a4 4 0 0 1-4 4H3"></path></svg
>Change plan<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
class="ms-auto"
>
<path d="m9 18 6-6-6-6"></path>
</svg></button
><button type="button" class="dropdown-item">
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<rect width="20" height="14" x="2" y="5" rx="2"></rect>
<line x1="2" x2="22" y1="10" y2="10"></line>
<path d="M6 14h2"></path></svg
>View invoices
</button>
<div class="dropdown-separator"></div>
<button
type="button"
class="dropdown-item dropdown-item-destructive"
>
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<path d="M18 6 6 18"></path>
<path d="m6 6 12 12"></path></svg
>Cancel subscription</button
><button
type="button"
class="dropdown-item dropdown-item-destructive"
>
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<path d="M10 11v6"></path>
<path d="M14 11v6"></path>
<path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6"></path>
<path d="M3 6h18"></path>
<path d="M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"></path></svg
>Delete customer
</button>
</div>
<div
class="dropdown dropdown-sub"
data-sp-toggle="#data-table-6-plan"
data-sp-placement="inline-end-start"
data-sp-mode="hover"
>
<div class="dropdown-item dropdown-item-radio">
<input
type="radio"
name="data-table-6-plan"
checked=""
value="Starter"
/>Starter
</div>
<div class="dropdown-item dropdown-item-radio">
<input type="radio" name="data-table-6-plan" value="Pro" />Pro
</div>
<div class="dropdown-item dropdown-item-radio">
<input
type="radio"
name="data-table-6-plan"
value="Enterprise"
/>Enterprise
</div>
</div>
</td>
</tr>
<tr class="table-row">
<td class="table-cell ps-4">
<input
type="checkbox"
class="checkbox"
aria-label="Select Emilie Dahl"
/>
</td>
<td class="table-cell">
<div class="flex items-center gap-3">
<span class="avatar"
><img
class="avatar-image"
alt=""
src="https://images.unsplash.com/photo-1634149134664-ca3598f29da5?w=640&h=640&fit=facearea&facepad=3.2&auto=format&q=100&bg-remove=true&bg=d9f99d"
/><span class="avatar-fallback">ED</span></span
>
<div class="flex flex-col">
<span class="font-medium">Emilie Dahl</span
><span class="text-xs text-muted-foreground"
>[email protected]</span
>
</div>
</div>
</td>
<td class="table-cell">
<span class="inline-flex items-center gap-2 font-medium"
><span class="flex items-end gap-0.5" aria-hidden="true"
><span class="w-1 rounded-[1px] h-1.5 bg-foreground"></span
><span class="w-1 rounded-[1px] h-2.5 bg-foreground"></span
><span class="w-1 rounded-[1px] h-3.5 bg-border"></span></span
>Pro</span
>
</td>
<td class="table-cell text-end tabular-nums">8</td>
<td class="table-cell ps-10">
<span class="badge badge-outline badge-square"
><span class="badge-dot bg-emerald-500"></span>Active</span
>
</td>
<td class="table-cell text-end font-medium tabular-nums">$392</td>
<td class="table-cell ps-6 text-muted-foreground">Nov 9, 2026</td>
<td class="table-cell text-muted-foreground">Sep 9, 2026</td>
<td class="table-cell pe-4">
<button
type="button"
class="btn btn-ghost btn-sm btn-icon text-muted-foreground"
id="data-table-7-menu"
aria-label="Open menu for Emilie Dahl"
>
<svg
xmlns="http://www.w3.org/2000/svg"
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>
<circle cx="19" cy="12" r="1"></circle>
<circle cx="5" cy="12" r="1"></circle>
</svg>
</button>
<div
class="dropdown"
data-sp-toggle="#data-table-7-menu"
data-sp-placement="bottom-end"
>
<button type="button" class="dropdown-item">
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<circle cx="12" cy="8" r="5"></circle>
<path d="M20 21a8 8 0 0 0-16 0"></path></svg
>View customer</button
><button type="button" class="dropdown-item">
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<path d="m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7"></path>
<rect x="2" y="4" width="20" height="16" rx="2"></rect></svg
>Copy email</button
><button
type="button"
class="dropdown-item"
id="data-table-7-plan"
>
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<path d="m17 2 4 4-4 4"></path>
<path d="M3 11v-1a4 4 0 0 1 4-4h14"></path>
<path d="m7 22-4-4 4-4"></path>
<path d="M21 13v1a4 4 0 0 1-4 4H3"></path></svg
>Change plan<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
class="ms-auto"
>
<path d="m9 18 6-6-6-6"></path>
</svg></button
><button type="button" class="dropdown-item">
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<rect width="20" height="14" x="2" y="5" rx="2"></rect>
<line x1="2" x2="22" y1="10" y2="10"></line>
<path d="M6 14h2"></path></svg
>View invoices
</button>
<div class="dropdown-separator"></div>
<button
type="button"
class="dropdown-item dropdown-item-destructive"
>
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<path d="M18 6 6 18"></path>
<path d="m6 6 12 12"></path></svg
>Cancel subscription</button
><button
type="button"
class="dropdown-item dropdown-item-destructive"
>
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<path d="M10 11v6"></path>
<path d="M14 11v6"></path>
<path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6"></path>
<path d="M3 6h18"></path>
<path d="M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"></path></svg
>Delete customer
</button>
</div>
<div
class="dropdown dropdown-sub"
data-sp-toggle="#data-table-7-plan"
data-sp-placement="inline-end-start"
data-sp-mode="hover"
>
<div class="dropdown-item dropdown-item-radio">
<input
type="radio"
name="data-table-7-plan"
value="Starter"
/>Starter
</div>
<div class="dropdown-item dropdown-item-radio">
<input
type="radio"
name="data-table-7-plan"
checked=""
value="Pro"
/>Pro
</div>
<div class="dropdown-item dropdown-item-radio">
<input
type="radio"
name="data-table-7-plan"
value="Enterprise"
/>Enterprise
</div>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<div class="card-footer justify-between gap-4">
<span class="hidden text-muted-foreground sm:block"
><span data-selected="">0</span> of 24 row(s) selected.</span
>
<div
class="flex w-full items-center justify-between gap-6 sm:w-auto sm:justify-end"
>
<div class="field field-horizontal hidden w-auto md:flex">
<label class="label" for="data-table-page-size">Rows per page</label
><select class="select select-sm w-18" id="data-table-page-size">
<option value="10" selected="">10</option>
<option value="20">20</option>
<option value="50">50</option>
</select>
</div>
<span class="font-medium whitespace-nowrap">Page 1 of 3</span>
<div class="flex gap-2">
<button
type="button"
class="btn btn-outline btn-sm btn-icon hidden sm:inline-flex"
disabled=""
aria-label="First page"
>
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<path d="m11 17-5-5 5-5"></path>
<path d="m18 17-5-5 5-5"></path>
</svg></button
><button
type="button"
class="btn btn-outline btn-sm btn-icon"
disabled=""
aria-label="Previous page"
>
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<path d="m15 18-6-6 6-6"></path>
</svg></button
><button
type="button"
class="btn btn-outline btn-sm btn-icon"
aria-label="Next page"
>
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<path d="m9 18 6-6-6-6"></path>
</svg></button
><button
type="button"
class="btn btn-outline btn-sm btn-icon hidden sm:inline-flex"
aria-label="Last page"
>
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<path d="m6 17 5-5-5-5"></path>
<path d="m13 17 5-5-5-5"></path>
</svg>
</button>
</div>
</div>
</div>
<div class="action-bar" aria-label="Selection actions" data-selection="">
<button
type="button"
class="btn btn-ghost btn-sm tabular-nums"
data-sp-dismiss=""
>
<span data-selected="">0</span> selected<span class="sr-only"
>, clear selection</span
><svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
class="icon-end"
>
<path d="M18 6 6 18"></path>
<path d="m6 6 12 12"></path>
</svg>
</button>
<div class="separator separator-vertical"></div>
<button type="button" class="btn btn-ghost btn-sm">
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
class="icon-start"
>
<path d="M12 15V3"></path>
<path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"></path>
<path d="m7 10 5 5 5-5"></path></svg
><span class="sr-only sm:not-sr-only">Export</span></button
><button type="button" class="btn btn-ghost btn-sm">
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
class="icon-start"
>
<path d="m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7"></path>
<rect x="2" y="4" width="20" height="16" rx="2"></rect></svg
><span class="sr-only sm:not-sr-only">Email</span></button
><button
type="button"
class="btn btn-ghost btn-sm text-destructive hover:text-destructive"
>
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
class="icon-start"
>
<path d="M10 11v6"></path>
<path d="M14 11v6"></path>
<path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6"></path>
<path d="M3 6h18"></path>
<path d="M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"></path></svg
><span class="sr-only sm:not-sr-only">Delete</span>
</button>
</div>
<script>
// Demo only: wire these controls to your own data.
{
const table = document.currentScript.closest("section");
const all = table.querySelector("thead input[type=checkbox]");
const rows = [...table.querySelectorAll("tbody input[type=checkbox]")];
const update = () => {
const selected = rows.filter((input) => input.checked).length;
table
.querySelectorAll("[data-selected]")
.forEach((el) => (el.textContent = selected));
table
.querySelectorAll("[data-selected-noun]")
.forEach((el) => (el.textContent = selected === 1 ? "row" : "rows"));
const bar = window.sp?.actionBar(
table.querySelector(".action-bar[data-selection]"),
);
if (bar) selected ? bar.show() : bar.hide();
const row = table.querySelector("tr[data-selection]");
if (row) row.hidden = selected === 0;
all.checked = selected === rows.length;
all.indeterminate = selected > 0 && !all.checked;
table.querySelectorAll("[data-facet]").forEach((facet) => {
const checked = facet.querySelectorAll("input:checked").length;
const count = table.querySelector(
facet.dataset.spToggle + " [data-facet-count]",
);
count.textContent = checked;
count.hidden = checked === 0;
});
const reset = table.querySelector(
"[data-reset-filters]:not(.drawer *)",
);
reset.hidden =
table.querySelectorAll(".dropdown[data-facet] input:checked")
.length === 0;
};
const uncheck = (inputs) =>
inputs.forEach((input) => {
input.checked = false;
input.dispatchEvent(new Event("change", { bubbles: true }));
});
table.addEventListener("change", (event) => {
if (event.target === all)
rows.forEach((input) => (input.checked = all.checked));
update();
});
table.addEventListener("click", (event) => {
if (event.target.closest("[data-clear-selection]")) uncheck(rows);
if (event.target.closest("[data-reset-filters]"))
uncheck(table.querySelectorAll("[data-facet] input:checked"));
const pick = event.target.closest(".dropdown-sub .dropdown-item-radio");
if (pick)
setTimeout(
() =>
window.sp
?.dropdown(
table
.querySelector(
pick.closest(".dropdown-sub").dataset.spToggle,
)
.closest(".dropdown"),
)
?.hide(),
150,
);
});
table
.querySelector(".action-bar[data-selection]")
?.addEventListener("sp-hide", () => uncheck(rows));
update();
}
</script>
</section>