Skip to content

Transfer List

Free

Move items from one list to another, such as people onto a project. Each side has search and a select-all box, with a seat limit, drag, and Undo.

  • Base UI
  • Motion
  • React 19
  • Tailwind CSS 4

Added Nov 17, 2026 · MIT + Commons Clause

Playground

Loading the preview

Props

Pass every item as items and the chosen keys as defaultValue. Each list renders its rows from a function that gets a key. Render a Toaster for the Undo Toast.

project-members.tsx

TransferList

<div>
PropTypeDefaultDescription
itemsRequired—Every item, on both sides: its key and the text it is searched and sorted by.
valuereadonly string[]—The chosen side: item keys in their order.
defaultValuereadonly string[]—
onValueChange—
lockedreadonly string[]—Keys that stay on the chosen side: no box, no drag (the owner of a project).
disabledKeysreadonly string[]—Keys that cannot move now: their rows dim and take no press.
maxnumber—The most items the chosen side holds (seats). A move stops at the room left.
localestring—The search and sort language. Default: the DisplayLocaleProvider locale, else en-US.
labels—
childrenReactNode—
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

TransferListPanel

<section>
PropTypeDefaultDescription
sideRequired"source""target"—source: the free items. target: the chosen ones.
...props<section> attributes—Every other attribute goes to the <section>, with a ref.

TransferListHeader

<div>
PropTypeDefaultDescription
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

TransferListSelectAll

<span>
PropTypeDefaultDescription
classNamestring—
size"default""lg"—default 16px, or lg 20px. Default: the CheckboxGroup size, else default.
From Base UICheckbox.RootBase UI docs
idstring—The id of the input element.
namestringundefinedIdentifies the field when a form is submitted.
formstring—Identifies the form that owns the hidden input. Useful when the checkbox is rendered outside the form.
...props<span> attributes—Every other attribute goes to the <span>, with a ref.

TransferListTitle

<h3>
PropTypeDefaultDescription
...props<h3> attributes—Every other attribute goes to the <h3>, with a ref.

TransferListCount

<span>
PropTypeDefaultDescription
...props<span> attributes—Every other attribute goes to the <span>, with a ref.

TransferListSelection

<span>
PropTypeDefaultDescription
...props<span> attributes—Every other attribute goes to the <span>, with a ref.

TransferListSearch

<div>
PropTypeDefaultDescription
onSearch—Run the search: on Enter, on a clear (with ""), and after debounce ms of no typing.
onClear—The text was cleared (the clear button, or Escape with text).
debouncenumber—Ms of no typing before onSearch runs. undefined (the default): typing does not search, only Enter and a clear do. 0: each change searches.
shortcutfalse"/""mod+k"—The key that focuses and selects the field from anywhere. Default false (none).
classNamestring—Classes of the frame (the InputGroup), for its width.
busyboolean—The field waits for results: the spinner takes the place of the search icon, and the input is aria-busy.
labels—The words (SEARCH_FIELD_LABELS). Keep the object stable.
rounded"default""full"—
size"default""lg""sm""xs"—
variant"dashed""default"—
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

TransferListList

<div>
PropTypeDefaultDescription
childrenRequired—Renders the content of one row from its key: put a TransferListItem around it.
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

TransferListItem

<div>
PropTypeDefaultDescription
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

TransferListItemText

<div>
PropTypeDefaultDescription
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

TransferListItemTitle

<span>
PropTypeDefaultDescription
...props<span> attributes—Every other attribute goes to the <span>, with a ref.

TransferListItemDescription

<span>
PropTypeDefaultDescription
...props<span> attributes—Every other attribute goes to the <span>, with a ref.

TransferListEmpty

<div>
PropTypeDefaultDescription
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

TransferListActions

<div>
PropTypeDefaultDescription
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

TransferListLimit

<div>
PropTypeDefaultDescription
...props<div> attributes—Every other attribute goes to the <div>, with a ref.
  • Use it when people pick many items from a long list and need to see both lists at once.
  • Use max to stop the chosen list at a seat limit, and TransferListLimit to say when it is full.
  • Use locked for items that must stay chosen, such as the owner, and disabledKeys for items that cannot move now.
  • Use the chosen side's order: drag a row, or press Alt with an arrow key, to move it.
TabMoves to a list. Each list is one tab stop, and the active row has a ring.
Up ArroworDown ArrowMoves the active row.
HomeorEndGoes to the first or the last row.
SpaceChecks or clears the active row. With Shift, it checks the rows from the last check to here.
EnterMoves the checked rows to the other list, or the active row when none is checked.
CmdAorCtrlAChecks every row that the search keeps. Locked and disabled rows stay out.
/Moves focus to the search of the list.
AltUp ArroworAltDown ArrowOn the chosen side, moves the active row up or down in the order.

Each list is a listbox with one tab stop. The active row is an option that the list points at with aria-activedescendant.

A checked row has aria-selected. A locked or disabled row has aria-disabled, and a locked row shows a lock.

The four move buttons have names, such as Move the checked items to the chosen list, and each is off while it has nothing to move.

On a touch screen the Add and Remove button of each row always shows.

Row button
hover · 150ms · the Add or Remove button fades in on hover and on the active row
Just moved
fade · 1200ms · the rows that moved show a green tint that fades out
Drag
panel · 260ms · ease-panel (0.2, 0.4, 0.2, 1) · the rows slide to open a slot where the drop lands

Built with

Installs with Transfer List

  1. AddedTransfer List, with Button, Checkbox, Search Field.
Open the release