AdaptTable for Base UI

Mobile cards in Base UI

Below the mobile breakpoint every row becomes a Base UI card. Same columns, same row content, same query state — there is nothing to configure and no second layout to build.

paginationMode="auto" resolves to infinite scroll on phones and a pager on desktop. Per column, mobileLabel and hideOnMobile tune what a card shows.

Unlabeled identity fields span the card; labeled details share the available width. Column renderers keep native avatars, badges and progress indicators. Set forceMobile to false to keep a horizontally scrolling table on phones.

A card here is the adapter's own bordered surface rather than a Base UI component, since Base UI ships no Card; density tightens the gaps around it rather than the card's own padding.

The code

import { DataTable } from "@adapttable/base-ui";

export function People({ rows, columns }) {
  return (
    <DataTable
      data={rows}
      columns={columns}
      rowKey={(row) => row.id}
      paginationMode="auto"
      mobileBreakpoint={768}
    />
  );
}

Install

pnpm add @adapttable/base-ui @adapttable/core @base-ui/react

The same feature in the other kits

More Base UI features

Reference: mobile. More of this kit: AdaptTable for Base UI, or the live demo.