Builtin component

Table

Data table with rows, actions, and filters.

Props

PropTypeDefaultDescription
sourceDataSource—Resource binding to fetch rows from
dataRecord<string, unknown>[]—Inline data (alternative to `source`)
columnsTableColumn[]—Column definitions
variant"default" | "data"—Visual style
rowLink{ path, params }—Link each row to a route
rowActionsTableRowAction[]—Per-row action buttons
actionsTableRowMenuAction[]—Table-level menu actions
searchableboolean—Show search input
filtersTableFilter[]—Column filter dropdowns
pageSizenumber—Rows per page

Example

Table({
  source: warehouses(),
  columns: [
    { id: "name", label: "Name" },
    { id: "status", label: "Status" },
  ],
  rowActions: [
    {
      label: "Suspend",
      action: suspendWarehouse({ warehouse: "row.name" }),
      when: { field: "status", equals: "RUNNING" },
    },
  ],
  searchable: true,
})