Use it as the main table of a back office. You own the TanStack Table instance, so sorting, filtering, selection and paging stay in your code. It adds calm row reflow and a rolling sort marker.
When not to use
For a short static list without sorting or selection a plain list is lighter. For lines the user edits in cells use Line Items.
The table at the centre of a back office: invoices, orders, members, logs. It renders a TanStack Table v9 instance you own, so sorting, filtering, selection and pagination (client or server side) stay in your code, and adds the motion: rows re-sort by a calm reflow, the sort marker is one ball that rolls between headers, adjacent selected rows share one rail and filter results cascade in. Tables are calm by rule: whatever the temperament, the body never bounces. For a short static list without sorting or selection, a plain list is lighter.
getRowId is required: rows animate by id, and an index id would move the wrong rows after a sort. To build the instance yourself, call useTable from @tanstack/react-table with features: dataTableFeatures; controlled state (state plus onSortingChange, onRowSelectionChange, ...) works as in TanStack.
preset picks the layout: comfortable (44 px rows, zebra, the default), dense (32 px rows for logs and ledgers) or cards (each row a card with field labels). Under collapseBelow px of container width (480 by default) the table switches to cards on its own, and columns with meta.hideBelow hide. Column meta also takes align: "end" for numbers, skeletonWidth and label.
temperament only reaches the footer controls: the body, header and selection rail always use the calm tokens.
On first load the body shows skeleton rows at the preset's row height, so data arriving never moves the footer. With rows present, loading runs a thin bar under the header while rows stay interactive.
A native <table> with an sr-only <caption> from label, scope="col" headers and aria-sort on sortable headers (only the sorted one is not none). Sort state is never color only: the ball's arrow points the direction.
Sortable headers hold a full-cell button; the select column uses MotionKit checkboxes with labels ("Select row #2041", "Select all rows on this page").
A polite live region reads "Sorted by Amount, descending", "2 rows selected" and the result count after a filter, debounced to the last change in 300 ms.
The sort ball, the selection rail and the refetch bar are aria-hidden. Body text stays foreground in every state, also when disabled; the rail and ball are primary on card, at least 3:1.
The header does not sink and the ball does not stretch. Rows and the sort ball still glide to their new place in the short fade time, so the eye can follow a row; the arrow turns in the same fade. The selection rail glides without stretching, filtered rows fade in together and the selection count crossfades.
On a sort or filter the table re-renders in its new order hidden, and inert copies of the rows travel to it on one calm spring (position and opacity of a few strips), drawing each row once; where two rows cross, the text of the one underneath gives way before they are half a row apart, so no frame prints text over text. The real rows take over on landing. Columns use a fixed layout, so they never shift between skeleton, sort and filter. Above maxAnimatedRows visible rows (100 by default) sorting and filtering apply without layout animation. Nothing runs at rest: the only loop is the refetch bar, mounted only while loading is true with rows present. The Columns menu content mounts when opened.
Technical sheet
Motion
calm
260 ms · bounce 0
lively
400 ms · bounce 0.3
playful
540 ms · bounce 0.45
Main spring of each temperament. Set it with the temperament prop or MotionKitProvider; the default is lively.
Size
Not measured yet · budget 18.6 kB gzip
Component and MotionKit helpers; excludes react, react-dom, @radix-ui/react-dropdown-menu, motion.
Dependencies
@radix-ui/react-checkbox
@radix-ui/react-dropdown-menu · peer
@tanstack/react-table
motion · peer
Triggers
click, typing, press, a loading state
Reduced motion
No header sink, ball stretch or row lift travel: rows and the sort ball glide in the short fade, the arrow crossfades, the selection rail glides without stretching, filtered rows fade in together and the count crossfades.
Keyboard
Tab / Shift + Tab
Toolbar, sortable headers, select-all, row checkboxes, then pagination
Enter / Space
On a sortable header: cycles the sort; rows reflow and the sort ball rolls to it
Space
Toggles a row or select-all checkbox; adjacent selected rows share one rail
Shift + Space / Shift + click
Selects the range from the last toggled row to this one
Escape
Clears the selection while focus is in the body
Enter
Activates a focused row when onRowActivate is set
Enter / ArrowDown
Opens the Columns menu; Space toggles a column, Escape closes it
Browsers
Last 2 versions of Chrome, Edge, Firefox and Safari (iOS 16.4+)