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>| Prop | Type | Default | Description |
|---|---|---|---|
| items | — | Every item, on both sides: its key and the text it is searched and sorted by. | |
| value | readonly string[] | — | The chosen side: item keys in their order. |
| default | readonly string[] | — | |
| on | — | ||
| locked | readonly string[] | — | Keys that stay on the chosen side: no box, no drag (the owner of a project). |
| disabled | readonly string[] | — | Keys that cannot move now: their rows dim and take no press. |
| max | number | — | The most items the chosen side holds (seats). A move stops at the room left. |
| locale | string | — | The search and sort language. Default: the DisplayLocaleProvider locale, else en-US. |
| labels | — | ||
| children | ReactNode | — | |
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
TransferListPanel
<section>| Prop | Type | Default | Description |
|---|---|---|---|
| side | "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>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
TransferListSelectAll
<span>| Prop | Type | Default | Description | ||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| class | string | — | |||||||||||||||||||||||||||||||||||||||||||||||
| size | "default""lg" | — | default 16px, or lg 20px. Default: the CheckboxGroup size, else default. | ||||||||||||||||||||||||||||||||||||||||||||||
From Base UICheckbox.RootBase UI docs | |||||||||||||||||||||||||||||||||||||||||||||||||
| id | string | — | The id of the input element. | ||||||||||||||||||||||||||||||||||||||||||||||
| name | string | undefined | Identifies the field when a form is submitted. | ||||||||||||||||||||||||||||||||||||||||||||||
| form | string | — | 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>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <h3> attributes | — | Every other attribute goes to the <h3>, with a ref. |
TransferListCount
<span>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <span> attributes | — | Every other attribute goes to the <span>, with a ref. |
TransferListSelection
<span>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <span> attributes | — | Every other attribute goes to the <span>, with a ref. |
TransferListSearch
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| on | — | Run the search: on Enter, on a clear (with ""), and after debounce ms of no typing. | |
| on | — | The text was cleared (the clear button, or Escape with text). | |
| debounce | number | — | Ms of no typing before onSearch runs. undefined (the default): typing does not search, only Enter and a clear do. 0: each change searches. |
| shortcut | false"/""mod+k" | — | The key that focuses and selects the field from anywhere. Default false (none). |
| class | string | — | Classes of the frame (the InputGroup), for its width. |
| busy | boolean | — | 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>| Prop | Type | Default | Description |
|---|---|---|---|
| children | — | 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>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
TransferListItemText
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
TransferListItemTitle
<span>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <span> attributes | — | Every other attribute goes to the <span>, with a ref. |
TransferListItemDescription
<span>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <span> attributes | — | Every other attribute goes to the <span>, with a ref. |
TransferListEmpty
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
TransferListActions
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
TransferListLimit
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
| Tab | Moves to a list. Each list is one tab stop, and the active row has a ring. |
|---|---|
| Up ArroworDown Arrow | Moves the active row. |
| HomeorEnd | Goes to the first or the last row. |
| Space | Checks or clears the active row. With Shift, it checks the rows from the last check to here. |
| Enter | Moves the checked rows to the other list, or the active row when none is checked. |
| CmdAorCtrlA | Checks every row that the search keeps. Locked and disabled rows stay out. |
| / | Moves focus to the search of the list. |
| AltUp ArroworAltDown Arrow | On the chosen side, moves the active row up or down in the order. |
Built with
Installs with Transfer List
- Components
- Button,Checkbox,Search Field









