You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
DataTable renders only a table layout. On narrow screens wide tables need horizontal scrolling or are unusable, and there is no built-in compact alternative.
Evidence
@cratis/components 4.47.0: dist/esm/styles.DataTables.css contains no responsive rule for the table; the only max-width media query (line 865) belongs to the number input, the others are prefers-reduced-motion and forced-colors.
dist/esm/DataTables/DataTableCore.d.ts and DataTableStateProps.d.ts expose no layout or breakpoint option.
dist/esm/DataTables/ contains table, head, body, row and paginator parts only; there is no card/list rendering.
What it costs a consumer
Apps with mobile users build and maintain a second list component next to every table, and re-implement selection, sorting and paging for it.
Suggested fix — the seam
An opt-in layout mode that renders each row as a card, using column headers as labels, below a configurable breakpoint, reusing the existing selection, sorting and paging state.
Delivered in #563 (merged). DataTableCore, DataTableForQuery and DataTableForObservableQuery now take an opt-in mobileLayout='cards' prop, with mobileBreakpoint to change the viewport threshold (640 CSS pixels by default). Card mode has its own sort and selection controls. Focus and selection carry over when the layout switches. Without the prop, the table renders as before.
Activity
woksin commentedon Nov 21, 2026
Delivered in #563 (merged).
DataTableCore,DataTableForQueryandDataTableForObservableQuerynow take an opt-inmobileLayout='cards'prop, withmobileBreakpointto change the viewport threshold (640 CSS pixels by default). Card mode has its own sort and selection controls. Focus and selection carry over when the layout switches. Without the prop, the table renders as before.