All Challenges

Transfer List (Move Selected or All Items Left/Right)

ReactMediumAtlassianUberZoho
30:00

Problem Brief

Build a dual-list item shuttle allowing users to move selected items or all items cleanly between Available and Assigned columns.

Requirements

  • Render left list `[data-testid="left-list"]` and right list `[data-testid="right-list"]`.
  • Moving checked items Right (`[data-testid="move-right"]`) transfers only checked items and clears checks.
  • Bulk buttons `[data-testid="move-all-right"]` and `[data-testid="move-all-left"]` transfer every item.
Progressive Hints (1)
  • Represent items with `{ id, label, side: "left" | "right", checked: boolean }` and render both panes from one source of truth.
Reference Solution

Stuck? Load the verified reference code into your editor.

Automated Test Suite

2 Test Cases Ready
  • Moves only checked item to right paneSelecting HTML5 and clicking > moves HTML5 to right list
  • Bulk transfers all items left and right>> and << shift all 3 items cleanly
solution.html
Live Sandboxed Previewiframe sandbox
Starter template loaded — add your <script> logic in the editor (or open Reference Solution) to make the widget interactive.