lantern

Data table

The admin table: Flop-driven sort/pagination, built-in debounced search and filter selects, tabs with filter presets, a collapsible stat overview, bulk selection, and a cards view — with the entire table state living in the URL. Everything below is live against an in-memory dataset.

Revenue (all)
$12031.57
Orders
10
Pending
19
Refunded
19
#4809 pending
Alan Dijkstra
eBay · $400.14
#4832 refunded
Ada Lovelace
Direct · $389.94
#4817 refunded
Alan Dijkstra
Direct · $389.70
#4831 shipped
Ken Knuth
Shopify · $386.22
#4836 pending
Barbara Liskov
eBay · $380.48
#4835 refunded
Edsger Turing
Direct · $378.94
#4856 refunded
Ada Lovelace
Direct · $377.87
#4851 pending
Edsger Turing
eBay · $372.13
#4825 shipped
Alan Dijkstra
Shopify · $362.90
#4845 pending
Donald Thompson
eBay · $362.35
<.data_table id="orders" rows={@orders} meta={@meta} path={~p"/orders"}
  selected_ids={@selected} search_field={:q}>
  <:stat label="Revenue (30d)" value={@revenue} />
  <:tab label="Pending" count={@counts.pending}
        filters={[%{field: "status", value: "pending"}]} />
  <:filter field={:channel} options={@channels} />
  <:col :let={o} label="Order" field={:reference} sortable>{o.reference}</:col>
  <:bulk_action label="Archive" icon="inbox" event="bulk-archive" />
  <:row_action :let={o}>…</:row_action>
  <:card :let={o}>…</:card>
</.data_table>