Use it to pick a subset from a known list and see both sides at once: members on a project, columns in a
report, products in a bundle, recipients of a share. For a few options in a form field, use a combobox or a
tag input; for a list that only reorders, use a sortable list or the kanban board.
A moved row never teleports. It sinks under the finger (charge), folds into a chip around its initial
ball and flies straight across the gap while the other list opens a slot at the item's place and the first
list closes ranks on the same spring (action). The chip lands in the slot, unfolds into a row, squashes
once against the slot's floor and both counts roll (settle). Several selected rows leave one stagger
step apart, like dealt cards.
value holds the ids in the target list (controlled; defaultValue for uncontrolled). onValueChange
receives the new value and the change (ids and to). Without selectable a single click moves a row;
with it a click selects (checkboxes appear) and the arrow on each row, a double-click, Enter or the move
buttons in the gap move. order sets how the target is sorted: insertion (as moved), alphabetical or
source (as in items). max caps the target: a move past it is refused, the chip reaches toward the full
list and flies home, and its count turns destructive.
Three layout presets share one look and one motion:
<TransferList preset="columns" /> {/* side by side, move buttons in the gap; stacks below 480 px */}<TransferList preset="stacked" /> {/* source above target, for side panels: chips fly down and up */}<TransferList preset="chips" /> {/* a chip tray above one searchable source list */}
Rows can also be dragged across (mouse and pen, 4 px threshold); a drop outside the other list flies home.
actionsRef exposes move(ids, to) for guided tours. At calm the chip slides without the landing squash.
The stacked preset in a narrow panel at size="sm": single click moves a column, order="source" keeps
the table's column order and the hidden list groups columns under their group heading.
The chips preset: the target is a tray of chips above a searchable list. A row flies up into the tray as a
chip; clicking a chip (or Delete on it) flies it back into its row. max={6} caps the recipients.
Each list is a role="listbox" with aria-multiselectable, named by its heading. Rows are
role="option" with aria-selected, named by the label and described by the meta text. Disabled rows
have aria-disabled and never move.
One row per list is in the tab order (roving tabindex); Tab goes from one list to the move buttons and
on to the other list. After a move, focus stays in the list it left, on the row that took the moved one's
place, so repeated moves are fast.
The move buttons are labelled with what they do ("Move 2 to On the project") and are disabled while
nothing is selected in their list.
A polite live region announces every move ("Mara Lind moved to On the project. 8 in Available
people.") and a refused move ("On the project is full: 8 of 8.").
The row checkbox, the initial ball, the move arrow and the chip in flight are aria-hidden (an option's
children are presentational); selection is carried by aria-selected.
Rows are 36 px (sm) or 40 px (md) tall, tray chips 28 px. The focus ring is ring-[3px] ring-ring/50
on the row; the hover and focus highlight is the accent pill. Colors come from your theme tokens, so
contrast follows it in light and dark.
With reduced motion (the OS setting, or MotionKitProvider reducedMotion="always") there is no flight,
fold or squash. The moved row fades out of its list, the new row fades in at its place, the siblings close
and open ranks in the 120ms fade, and the counts crossfade. The highlight pill glides without stretching.
Nothing disappears: both lists keep their rims, balls and counts at every frame.
The chip is one fixed element in a portal (outside both scrolling lists, so it is never clipped). Its
position, scale and squash are transforms; its width and height change while it folds and unfolds, which
only lays out that isolated element, so the radius and the 1px rim stay exact instead of stretching.
Rows reflow with Motion layout animations on one shared spring (the calm spring while filtering).
Slots are measured from layout offsets after the state is applied, never from a box mid-animation, and a
slot below the fold scrolls into view before the chip leaves.
Nothing runs at rest: no loops, no timers. Flights clean up their timers if the list unmounts.
Size: our code (component plus the shared beats, pill, roll, morph, motion-kit and checkbox)
is about 13 kB gzip; motion is a peer and not counted.
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 15.0 kB gzip
Component and MotionKit helpers; excludes react, react-dom, motion.
Dependencies
@radix-ui/react-checkbox
motion · peer
Triggers
click, press, drag, a value change
Reduced motion
No flight or squash: the moved row fades out, the new row fades in at its place, siblings move in the 120ms fade and the counts crossfade.
Keyboard
ArrowUp / ArrowDown
Moves focus between rows (ArrowLeft / ArrowRight in the chip tray)
Home / End
Focuses the first or last row
A-Z (type-ahead)
Focuses the next row whose label starts with the typed text
Space
Selects or unselects the focused row
Enter
Moves the selected rows of the list, or the focused row, to the other list
Ctrl + ArrowRight / ArrowLeft
Moves the focused row across (Ctrl + ArrowDown / ArrowUp when stacked)
Delete / Backspace
Moves the focused target row back to the source
Tab
Goes from one list to the move buttons and the other list
Browsers
Last 2 versions of Chrome, Edge, Firefox and Safari (iOS 16.4+)