Transfer List
Introduction
Section titled “Introduction”Moves items between two lists, Available and Selected: team members, permissions, report columns. Each list is a WAI-ARIA multi-select listbox with a search box and an item count. Four buttons move the checked or all visible items; Enter and double-click move too, and pointer drag between the lists is optional (draggable). Long lists are windowed, so 10,000 items stay fast. TransferList is a Form control: it validates, serializes, and resets with Form, and native forms receive one hidden input per selected value.
- Two searchable listsAvailable and Selected, each with search and a live item count.
- Keyboard firstMulti-select listboxes: Space, Shift ranges, Ctrl+A, Enter to move, type-ahead.
- Drag, optionallyDrag items between the lists; the move buttons are always the alternative.
- 10,000 itemsWindowed rows keep long lists fast, with positions announced in the full list.
- Form readyRequired, minimum, and maximum counts; one hidden input per selected value.
Use it for
- Choosing a subset from a long list where users benefit from seeing both what is chosen and what is left: team assignment, permissions, report columns.
- Selections of tens to thousands of items that need search on both sides.
Use something else for
- A few options: use Checkbox Group.
- Picking several items inline in a form row: use Multi Select.
- Ordering items: use Sortable List (the Selected list keeps the order of moves, but cannot be reordered).
Anatomy
<div class="aui-field aui-transfer-list"> <label class="aui-field__label">Project team</label> <div class="aui-field__description">help</div> <div class="aui-transfer-list__body" role="group" aria-labelledby="label"> <div class="aui-transfer-list__panel aui-transfer-list__panel--available"> <div class="aui-transfer-list__head"><span class="aui-transfer-list__title">Available</span><span class="aui-transfer-list__count" role="status">3 of 120</span></div> <input type="search" class="aui-transfer-list__search" aria-label="Search Available"> <ul class="aui-transfer-list__list" role="listbox" aria-multiselectable="true" aria-activedescendant> <li class="aui-transfer-list__option" role="option" aria-selected aria-setsize aria-posinset>(check) label description</li> (visible rows only) </ul> <div class="aui-transfer-list__empty" aria-hidden="true">No matches</div> </div> <div class="aui-transfer-list__actions">4 x <button class="aui-transfer-list__move" aria-label="Move checked items to Selected"></button></div> <div class="aui-transfer-list__panel aui-transfer-list__panel--selected">(same)</div> </div> <div class="aui-field__error">error</div> <div hidden><input type="hidden" name="members" value="e2"> (one per selected value)</div></div>Live example
Section titled “Live example”Use the bar above each frame to switch theme, density, direction, and locale.
Transfer List in the Personal preferences showcase
Section titled “Transfer List in the Personal preferences showcase”The part of the Personal preferences showcase that uses Transfer List. Change its options, use it with the keyboard, and watch the event log; the link in the frame opens the full showcase. The bar above the frame switches theme, density, direction, and locale.
Showcase source
// Preferences showcase: a personal settings page with the new form controls. An accent// color with swatches, a contrast hint, and the eyedropper where supported; a satisfaction rating// with half steps; team assignment between two searchable lists (with drag); a work location// cascader whose cities load from a simulated server; a mention comment box with @people and// #tags from a simulated directory; a masked phone number; and an acknowledgement signature.import { Cascader, type CascaderOption, type CascaderValue } from '@absoluteui/components/cascader';import { ColorPicker } from '@absoluteui/components/color-picker';import { MaskedInput, MASK_PRESETS } from '@absoluteui/components/masked-input';import { MentionInput, type MentionSuggestion } from '@absoluteui/components/mention-input';import { Rating } from '@absoluteui/components/rating';import { SignaturePad } from '@absoluteui/components/signature-pad';import { TransferList, type TransferListItem } from '@absoluteui/components/transfer-list';import { action, choice, createShowcase, hostIn, section, status, toggle, wait } from './kit.js';
const sc = createShowcase({ title: 'Personal preferences', description: 'Pick an accent color, rate onboarding, choose your team and location, leave a comment with mentions, and sign.', simulated: true,});
// Appearance: color.const appearance = section(sc, 'Appearance', ['color-picker']);const color = ColorPicker.create(hostIn(appearance), { label: 'Accent color', description: 'Used for your calendar entries and highlights.', value: '#2563eb', presets: [ { value: '#2563eb', label: 'Blue' }, { value: '#15803d', label: 'Green' }, { value: '#b45309', label: 'Amber' }, { value: '#b91c1c', label: 'Red' }, { value: '#7c3aed', label: 'Violet' }, ], recent: ['#0f766e', '#be185d'], contrastWith: '#ffffff', name: 'accent',});sc.listen(color.host, ['aui-change'], 'color');
// Feedback: rating.const feedback = section(sc, 'Feedback', ['rating']);const rating = Rating.create(hostIn(feedback), { label: 'How was your onboarding?', allowHalf: true, value: 4, labels: ['Poor', 'Fair', 'Good', 'Very good', 'Excellent'], name: 'onboarding',});sc.listen(rating.host, ['aui-change'], 'rating');Rating.create(hostIn(feedback), { label: 'Team average', value: 4.5, allowHalf: true, display: true, size: 'sm' });
// Team: transfer list over a realistic directory size.const team = section(sc, 'Team', ['transfer-list']);const FIRST = ['Ana', 'Ben', 'Chen', 'Divya', 'Elif', 'Farah', 'Goran', 'Hana', 'Ivan', 'Jun', 'Kofi', 'Lena', 'Mateo', 'Nora', 'Omar', 'Priya'];const LAST = ['Ruiz', 'Okafor', 'Wang', 'Iyer', 'Kaya', 'Haddad', 'Petrov', 'Sato', 'Novak', 'Kim', 'Mensah', 'Fischer', 'Silva', 'Berg', 'Aziz', 'Rao'];const people: TransferListItem[] = [];for (let i = 0; i < 240; i++) { const name = `${FIRST[i % FIRST.length] ?? ''} ${LAST[Math.floor(i / FIRST.length) % LAST.length] ?? ''}`; people.push({ value: `p${String(i)}`, label: name, description: ['Engineering', 'Finance', 'People', 'Sales'][i % 4] ?? '', ...(i % 37 === 5 ? { disabled: true } : {}) });}const transfer = TransferList.create(hostIn(team), { label: 'Project team', items: people, value: ['p1', 'p2'], draggable: true, maxSelected: 12, name: 'team' });sc.listen(transfer.host, ['aui-change'], 'team');
// Location: lazy cascader.const location = section(sc, 'Work location', ['cascader']);const CITIES: Record<string, string[]> = { 'de/by': ['Munich', 'Nuremberg', 'Augsburg'], 'de/be': ['Berlin'], 'in/ka': ['Bengaluru', 'Mysuru'], 'in/mh': ['Mumbai', 'Pune'], 'us/ca': ['San Francisco', 'Los Angeles', 'San Diego'], 'us/ny': ['New York', 'Buffalo'],};const places: CascaderOption[] = [ { value: 'de', label: 'Germany', children: [{ value: 'by', label: 'Bavaria' }, { value: 'be', label: 'Berlin' }] }, { value: 'in', label: 'India', children: [{ value: 'ka', label: 'Karnataka' }, { value: 'mh', label: 'Maharashtra' }] }, { value: 'us', label: 'United States', children: [{ value: 'ca', label: 'California' }, { value: 'ny', label: 'New York' }] },];const cascader = Cascader.create(hostIn(location), { label: 'Office', options: places, value: ['de', 'by', 'munich'], levelLabels: ['Country', 'State', 'City'], name: 'office', loadChildren: async (_option, { signal, path }) => { await wait(500, signal); sc.log('server answered', { path }); return (CITIES[path.join('/')] ?? []).map((city) => ({ value: city.toLowerCase().replace(/\s+/g, '-'), label: city, isLeaf: true })); },});sc.listen(cascader.host, ['aui-change'], 'cascader');
// Comment: mentions from a simulated directory.const comment = section(sc, 'Comment', ['mention-input']);const TAGS = ['onboarding', 'payroll', 'benefits', 'equipment', 'training'];const findPeople = async (query: string, signal: AbortSignal): Promise<MentionSuggestion[]> => { await wait(250, signal); const q = query.toLowerCase(); return people.filter((p) => p.label.toLowerCase().includes(q)).slice(0, 8).map((p) => ({ id: p.value, label: p.label, description: p.description ?? '' }));};const mention = MentionInput.create(hostIn(comment), { label: 'Note for your manager', description: 'Type @ to mention a colleague or # to add a topic.', maxLength: 500, showCounter: true, name: 'note', triggers: [ { char: '@', label: '@ for people', provider: (query, { signal }) => findPeople(query, signal) }, { char: '#', label: '# for topics', provider: async (query, { signal }) => { await wait(150, signal); return TAGS.filter((t) => t.startsWith(query.toLowerCase())).map((t) => ({ id: t, label: t })); } }, ],});sc.listen(mention.host, ['aui-change', 'aui-mention'], 'mention');
// Contact: masked phone number.const contact = section(sc, 'Contact', ['masked-input']);const phone = MaskedInput.create(hostIn(contact), { label: 'Mobile phone', name: 'phone', ...MASK_PRESETS.phoneUs });sc.listen(phone.host, ['aui-change'], 'phone');
// Acknowledgement: signature.const sign = section(sc, 'Acknowledgement', ['signature-pad']);const signature = SignaturePad.create(hostIn(sign), { label: 'Signature', description: 'Draw your signature, or choose Type to enter your full name.', required: true, name: 'signature' });sc.listen(signature.host, ['aui-change'], 'signature');const summary = status(sign);const summarize = (): void => { const v = signature.value; summary.textContent = v === null ? 'Not signed yet.' : v.mode === 'type' ? `Signed as ${v.text}.` : `Signed with ${String(v.strokes.length)} strokes.`;};signature.host.addEventListener('aui-change', summarize);summarize();
// Options.const controls = [color, rating, transfer, cascader, mention, phone, signature];toggle(sc, 'Disabled', false, (disabled) => { for (const c of controls) c.update({ disabled });});toggle(sc, 'Read-only', false, (readOnly) => { for (const c of controls) c.update({ readOnly });});choice( sc, 'Color picker', [ { value: 'popup', label: 'Popup' }, { value: 'inline', label: 'Inline' }, ], 'popup', (mode) => { color.update({ mode }); }, ['color-picker'],);toggle(sc, 'Half stars', true, (allowHalf) => { rating.update({ allowHalf });}, ['rating']);/** A single path (strings), as opposed to a list of paths. */const isPath = (v: CascaderValue): v is readonly string[] => v?.every((part) => typeof part === 'string') === true;toggle(sc, 'Several offices', false, (multiple) => { const current = cascader.value; cascader.update({ multiple, value: multiple ? (isPath(current) ? [current] : []) : null });}, ['cascader']);action(sc, 'Validate', () => { const invalid = controls.filter((c) => !c.reportValidity()); sc.log('validate', { invalid: invalid.map((c) => c.label) });});action(sc, 'Reset', () => { for (const c of controls) c.reset(); summarize(); sc.log('reset');});Team assignment
Section titled “Team assignment”import { TransferList, type TransferListValueDetail } from '@absoluteui/components/transfer-list';
const host = document.createElement('div');const summary = document.createElement('p');document.body.append(host, summary);TransferList.create(host, { label: 'Project team', name: 'members', required: true, items: [ { value: 'e1', label: 'Asha Rao', description: 'Engineering' }, { value: 'e2', label: 'Ben Okafor', description: 'Design' }, { value: 'e3', label: 'Chen Wei', description: 'Engineering' }, { value: 'e4', label: 'Dana Silva', description: 'On leave', disabled: true }, ], value: ['e2'], titles: { available: 'Employees', selected: 'Team' },});host.addEventListener('aui-change', (event) => { const { value } = (event as CustomEvent<TransferListValueDetail>).detail; summary.textContent = `${String(value.length)} members`;});10,000 items with a limit and drag
Section titled “10,000 items with a limit and drag”import { TransferList } from '@absoluteui/components/transfer-list';
const host = document.createElement('div');document.body.append(host);const items = Array.from({ length: 10_000 }, (_, i) => ({ value: `sku-${String(i)}`, label: `Product ${String(i + 1)}` }));TransferList.create(host, { label: 'Featured products', items, maxSelected: 12, draggable: true, visibleRows: 10 });Read-only review
Section titled “Read-only review”import { TransferList } from '@absoluteui/components/transfer-list';
const host = document.createElement('div');document.body.append(host);TransferList.create(host, { label: 'Granted permissions', readOnly: true, items: [ { value: 'read', label: 'Read' }, { value: 'write', label: 'Write' }, { value: 'admin', label: 'Administer' }, ], value: ['read', 'write'],});Install and start
Section titled “Install and start”npm install @absoluteui/components @absoluteui/core @absoluteui/themeRegistry setup, the theme stylesheet, and the Content Security Policy are covered in Installation.
import { TransferList } from '@absoluteui/components/transfer-list';import '@absoluteui/components/transfer-list/style.css';First use
Section titled “First use”import { TransferList } from '@absoluteui/components/transfer-list';import '@absoluteui/components/transfer-list/style.css';
const host = document.querySelector<HTMLElement>('#permissions');if (host) { TransferList.create(host, { label: 'Permissions', name: 'permissions', items: [ { value: 'leave.approve', label: 'Approve leave' }, { value: 'payroll.view', label: 'View payroll' }, { value: 'payroll.run', label: 'Run payroll', description: 'Finance only', disabled: true }, ], draggable: true, });}More usage
import { TransferList } from '@absoluteui/components/transfer-list';
const host = document.querySelector<HTMLElement>('#columns');if (host) { TransferList.create(host, { label: 'Report columns', items: [ { value: 'name', label: 'Name' }, { value: 'dept', label: 'Department' }, { value: 'salary', label: 'Salary' }, { value: 'start', label: 'Start date' }, ], value: ['name', 'dept'], minSelected: 2, titles: { available: 'Hidden columns', selected: 'Shown columns' }, });}Using Angular? See Transfer List for Angular.
API reference
Section titled “API reference”Factory
Section titled “Factory”TransferList.create(host: HTMLElement, options: TransferListOptions): TransferListGlobal configuration key: transferList (see Configuration).
Options
Section titled “Options”| Option | Type | Default | Description |
|---|---|---|---|
label |
string |
Visible label of the control; names the group. Required. | |
hideLabel |
boolean |
"false" |
Visually hide the label. |
description |
string |
Help text, referenced by the group. | |
items |
readonly TransferListItem[] |
All items { value, label, description?, disabled? }; values are unique. Required. | |
value |
readonly string[] |
"[]" |
Selected values in Selected-list order; unknown values are dropped. |
name |
string |
Form field name: one hidden input per selected value. | |
required |
boolean |
"false" |
At least one item must be selected. |
minSelected |
number |
At least this many items when any are selected (or when required). | |
maxSelected |
number |
Hard limit; moves beyond it are refused and announced. | |
disabled |
boolean |
"false" |
Disable the control. |
readOnly |
boolean |
"false" |
Lists can be browsed and searched, but nothing moves. |
searchable |
boolean |
"true" |
Show a search box above each list. |
draggable |
boolean |
"false" |
Drag items between the lists with a pointer. |
titles |
{ available?: string; selected?: string } |
List titles (default Available and Selected). | |
visibleRows |
number |
"8" |
Rows visible in each list before it scrolls (3 to 50). |
validate |
(value: readonly string[]) => string | null |
Consumer validation; return a message to mark the value invalid. | |
icons |
Partial<TransferListIcons> |
Icon overrides. | |
validationTiming |
'blur' | 'input' | 'submit' |
"blur" |
When validation messages appear. Globally configurable. |
locale |
string |
"en-US" |
Locale of counts, messages, and search matching. Globally configurable. Inherited from common configuration. |
Properties
Section titled “Properties”| Property | Type | Description |
|---|---|---|
host |
HTMLElement |
The host element. |
value |
TransferListValue |
Selected values in Selected-list order (a copy). |
validity |
FieldValidity |
Current validity. |
dirty |
boolean |
The value differs from the initial value. |
touched |
boolean |
Focus has left the control once. |
options |
Readonly<TransferListOptions> |
Current options. |
Methods
Section titled “Methods”| Method | Description |
|---|---|
setValue(value: readonly string[]): void |
Set the selected values (no event). |
getFormValue(): string[] |
The value for Form serialization. |
reportValidity(): boolean |
Show messages now and return validity. |
setCustomError(message: string | null): void |
Show or clear an external error. |
focus(): void |
Focus the Available list. |
reset(): void |
Restore the initial value and clear searches, checks, and messages. |
update(options: Partial<TransferListOptions>): void |
Merge and apply options; an invalid update leaves the previous state. |
destroy(): void |
Remove rendering, listeners, and the form registration. |
Events
Section titled “Events”| Event | Detail | Bubbles | Cancelable | Description |
|---|---|---|---|---|
aui-change |
TransferListValueDetail |
Yes | No | Items moved: { value, validity, moved, to }. |
CSS classes
Section titled “CSS classes”All rules live in the aui.components cascade layer, so application styles override them without specificity battles.
| Class | Purpose |
|---|---|
aui-transfer-list |
Host (with aui-field); a size container. |
aui-transfer-list--disabled | --invalid | --dragging |
State modifiers. |
aui-transfer-list__body |
The group holding the lists and buttons. |
aui-transfer-list__panel | __panel--available | __panel--selected | __panel--drop |
A list panel and the drop-target state. |
aui-transfer-list__head | __title | __count |
Panel header: title and count (role=status). |
aui-transfer-list__search |
Search box. |
aui-transfer-list__list |
The listbox (scroll container). |
aui-transfer-list__option | __option--active | __option--draggable |
An option, the active option, and a draggable option. |
aui-transfer-list__check | __label | __desc |
Check box indicator, label, and description. |
aui-transfer-list__empty |
Empty or no-matches text. |
aui-transfer-list__actions | __move |
The move buttons. |
Icon slots
Section titled “Icon slots”| Slot | Default icon |
|---|---|
error |
alert-circle |
moveChecked |
chevron-right |
moveAll |
chevrons-right |
removeChecked |
chevron-left |
removeAll |
chevrons-left |
Design tokens
Section titled “Design tokens”Tokens this stylesheet reads (verified in CI). Override them in a theme or with the Theme Designer.
--aui-border-width | --aui-border-width-strong | --aui-color-border | --aui-color-border-strong | --aui-color-disabled-bg | --aui-color-error-fg | --aui-color-focus-ring | --aui-color-hover | --aui-color-on-primary | --aui-color-primary | --aui-color-selected | --aui-color-selected-text | --aui-color-surface | --aui-color-surface-sunken | --aui-color-text | --aui-color-text-disabled | --aui-color-text-muted | --aui-control-height-md | --aui-control-height-sm | --aui-control-padding-x | --aui-duration-fast | --aui-easing-standard | --aui-focus-ring-offset | --aui-focus-ring-width | --aui-font-family-sans | --aui-font-size-md | --aui-font-size-sm | --aui-font-size-xs | --aui-font-weight-medium | --aui-font-weight-semibold | --aui-icon-size-sm | --aui-icon-size-xs | --aui-line-height-normal | --aui-line-height-tight | --aui-radius-md | --aui-radius-sm | --aui-space-1 | --aui-space-2 | --aui-space-3 | --aui-touch-target-min
TypeScript definitions
type TransferListValue = string[];type TransferListSide = 'available' | 'selected';interface TransferListConfig { validationTiming: 'blur' | 'input' | 'submit' }interface TransferListItem { value: string; label: string; description?: string; disabled?: boolean }interface TransferListIcons { error: IconRef; moveChecked: IconRef; moveAll: IconRef; removeChecked: IconRef; removeAll: IconRef }interface TransferListOptions extends Partial<TransferListConfig> { label: string; hideLabel?: boolean; description?: string; items: readonly TransferListItem[]; value?: readonly string[]; name?: string; required?: boolean; minSelected?: number; maxSelected?: number; disabled?: boolean; readOnly?: boolean; searchable?: boolean; draggable?: boolean; titles?: { available?: string; selected?: string }; visibleRows?: number; validate?: (value: readonly string[]) => string | null; locale?: string; icons?: Partial<TransferListIcons>;}interface TransferListValueDetail { value: TransferListValue; validity: FieldValidity; moved: string[]; to: TransferListSide }Accessibility and performance
Section titled “Accessibility and performance”Accessibility
Section titled “Accessibility”Pattern: WAI-ARIA APG Listbox (multi-select, recommended selection model): each list is role=listbox with aria-multiselectable; focus stays on the listbox and aria-activedescendant names the active option; aria-selected marks checked options.
Checked on every docs build: the showcase passes axe (WCAG 2.2 A and AA rules) in the default, dark, and high-contrast themes and right to left; the playground loads without errors and passes axe before and after every on/off option is switched, with no Content Security Policy violations.
Keyboard
Section titled “Keyboard”| Key | Context | Action |
|---|---|---|
| ArrowDown / ArrowUp | List | Move the active option. |
| Home / End / Page Up / Page Down | List | First, last, or a page of options. |
| Space | List | Check or uncheck the active option. |
| Shift + ArrowDown / ArrowUp / Space | List | Check the range from the anchor to the active option. |
| Ctrl/Cmd + A | List | Check all visible options (again: uncheck all). |
| Enter | List | Move the checked options (or the active one) to the other list. |
| Printable characters | List | Type-ahead to an option. |
| ArrowDown | Search box | Move focus into the list. |
| Tab | Control | Search, list, buttons, search, list, in reading order. |
| Element | Role |
|---|---|
| body | group (aria-labelledby the label) |
| each list | listbox |
| item | option |
| count | status |
| move controls | button |
ARIA attributes
Section titled “ARIA attributes”| Attribute | Element | Value |
|---|---|---|
aria-multiselectable |
listbox | true |
aria-labelledby / aria-describedby |
listbox | the list title / its item count |
aria-activedescendant |
listbox | the active option while it is rendered |
aria-selected |
option | true when checked |
aria-setsize / aria-posinset |
option | position in the filtered list (rows are windowed) |
aria-disabled |
option / listbox | true for disabled items / a disabled control |
aria-readonly |
listbox | true when readOnly |
aria-required / aria-invalid |
Selected listbox | required and the shown validation state |
aria-label |
move buttons, search boxes | Move checked items to Selected, Search Available, and so on |
Focus stays on the listbox; the active option is shown with an outline. After a button moves the last items and disables itself, focus returns to the source list.
WCAG 2.2 success criteria addressed
Section titled “WCAG 2.2 success criteria addressed”| Criterion | Level | Note |
|---|---|---|
| 1.3.1 Info and Relationships | A | |
| 1.4.11 Non-text Contrast | AA | |
| 2.1.1 Keyboard | A | |
| 2.4.7 Focus Visible | AA | |
| 2.5.7 Dragging Movements | AA | |
| 4.1.2 Name, Role, Value | A | |
| 4.1.3 Status Messages | AA |
Automated test results: Accessibility and compliance.
Notes and known caveats
Section titled “Notes and known caveats”- Moves are announced (“2 items moved to Selected”); counts are polite status messages.
- Dragging is optional and always has a single-pointer and keyboard alternative: check items and press a move button (WCAG 2.5.7).
- Windowed rows carry aria-setsize and aria-posinset so screen readers announce the position in the full list.
- When the active option is scrolled out of the rendered window with the mouse, the listbox has no active descendant until the next key press.
- Manual screen-reader verification (NVDA, JAWS, VoiceOver) is pending.
Performance
Section titled “Performance”| Import cost | Minified | gzip | brotli | CSS brotli |
|---|---|---|---|---|
@absoluteui/components/transfer-list |
54.9 kB | 18.4 kB | 16.4 kB | 1.6 kB |
Measured at build time, including every AbsoluteUI module the component pulls in. No third-party runtime dependencies.
| Budget (enforced in CI) | Limit |
|---|---|
| TransferList.create with 10,000 items | < 50 ms in headless Chromium (only the visible rows are rendered) |
| Scroll frame (window re-render) | < 4 ms for 8 visible rows plus 12 overscan rows |
Tested scale: 10,000 items per list. Rows have one fixed height (control-height-sm); descriptions are truncated to one line.
Only the visible rows plus 6 overscan rows on each side are in the DOM; scrolling re-renders the window once per animation frame. Filtering is linear in the item count.
Measured run times: Performance.
Details
Section titled “Details”States
Empty; items checked; filtered; disabled item; dragging; drop target; limit reached; read-only; disabled; invalid.
State transitions
| From | Trigger | To |
|---|---|---|
| any | type in a search box | the list filters; the count updates (polite) |
| any | Space, click, Shift+click, Shift+arrows, Ctrl/Cmd+A | options checked or unchecked |
| items checked | move button, Enter | items move; announced; aui-change |
| any | double-click an item | that item moves; aui-change |
| dragging | release over the other list | the dragged items move; aui-change |
| dragging | release elsewhere, pointer cancel | nothing moves |
at maxSelected |
another move to Selected | refused; “You can select up to N items.” (assertive) |
Accessibility notes
- Drag is optional and never the only way: check items and press a move button (WCAG 2.5.7).
- Move buttons have names like “Move checked items to Team”; their icons are mirrored in right-to-left.
- The e2e axe run covers three themes; manual screen-reader verification is pending.
Responsive behavior
Two lists with the buttons between them. In containers narrower than 30rem (container query) the lists stack and the buttons run horizontally, with arrows pointing down and up.
Right-to-left
The Available list is on the right and the move arrows are mirrored, so they always point toward the target list.
Theming
Panels, check boxes, selection, and focus use global tokens and follow every theme. Forced colors use Highlight/HighlightText for checked options and CanvasText for the active outline.
Global configuration
configureAbsoluteUI({ components: { transferList: { validationTiming: 'submit' } } });Component configuration
Instance validationTiming and locale override configuration; configuration changes re-render existing instances.
Icons
icons.moveChecked (chevron-right), icons.moveAll (chevrons-right), icons.removeChecked (chevron-left), icons.removeAll (chevrons-left), icons.error (alert-circle). The check mark uses the built-in check.
Security
Labels and descriptions use textContent. The window padding is set through the CSSOM, so a strict CSP without unsafe-inline styles works.
Data handling
No persistence, network access, or telemetry. Search runs over the items in memory with locale-aware lowercase matching on label and description.
Supported data scale
10,000 items per list tested. Rows have one fixed height (control-height-sm), measured after the first render, so long labels are truncated.
Edge cases
- Moving with a search active moves only matching items (“Move all” means all visible).
- Checked items stay checked while filtered out and move with “Move checked”.
- Disabled items are shown but never checked or moved, also by “Move all”.
- Items keep their
itemsorder when moved to Selected in one batch; later moves append. - Values in
valuethat are not initemsare dropped;update({ items })drops values that disappear.
Errors
| Code | Category | Cause |
|---|---|---|
TRANSFER_LIST_OPTIONS |
configuration | Blank label, items not an array of { value, label } with unique values, a non-string value, invalid minSelected/maxSelected/visibleRows, or a non-function validate. |
CFG_INVALID_VALUE / CFG_UNKNOWN_OPTION |
configuration | Invalid configuration. |
Invalid options throw before the host is modified; an invalid update() leaves the previous state intact.
Known limitations
- Fixed row height; long text is truncated.
- The Selected list cannot be reordered.
- When the active option is scrolled out of the window with the mouse, there is no active descendant until the next key.
Unsupported scenarios
- More than two lists.
- Server-side search or paging.
(c) 2026 Kasadara Technology Solutions Pvt Ltd. AbsoluteUI is free to use under the AbsoluteUI Free Use License; it is not open source.