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
Order ↑ Buyer Channel Status Total
#4801 Alan Dijkstra Shopify shipped $56.62
#4804 Barbara Liskov Shopify shipped $78.39
#4807 Ken Knuth Shopify shipped $64.18
#4810 Grace Perlman Shopify shipped $240.13
#4813 Donald Thompson Shopify shipped $80.10
#4816 Ada Lovelace Shopify shipped $304.18
#4819 Edsger Turing Shopify shipped $287.34
#4822 Radia Hopper Shopify shipped $162.45
#4825 Alan Dijkstra Shopify shipped $362.90
#4828 Barbara Liskov Shopify shipped $324.27
<.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>