Skip to content
Design System
GitHub

Data table

Rows to search, filter, page through and act on, written once as a table that phones read as a list.

Overview

When to use

  • A fleet, a list of jobs or datasets: many things compared by the same few fields.
  • A section of a page, under its header and the numbers.

Use something else

  • A whole screen built around one list: Fleet operations.
  • A few things people pick from: Card.

Blocks

Fleet table

A fleet section to search, filter by state, paginate and act on rows as a ResponsiveTable, status as shape and word, with the emergency stop left to the screen around it.

BetaControlledRenders only from its props and callbacks, with no sample data or app shell inside: pass your data and handlers.
Install
npx shadcn add @syncrobotic/fleet-table

Usage rules

  • One list of columns (ResponsiveTable): a table where there is room, a list on a phone with the name, its state and one or two facts.
  • Narrow by one attribute with a SegmentedControl when two to four choices cover the list, each count after its word; a search beside it at the same height.
  • Counts and pages come from the server: FleetTableContent takes one page with its total, each segment's count from counts, and sends the query (page, limit, sortBy, order, search) out through onQueryChange, back to page 1 on a new search, sort or filter.
  • Nothing matches: the header stays and one spanning cell says why, with the way back (Clear filters).
  • A row's ⋯ menu is DropdownMenuMoreTrigger at its end; a section never stops a robot itself: the screen it sits in carries the stop.