terra vidhal

Transfer List

Component 2

About

A dual-list transfer picker with per-panel filters, multi-selection, select all, add and remove actions, reordering of the assigned list and animated rows. Counts update live, changes announce themselves politely and a reset action restores the initial lists exactly.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Transfer List to your project and fits it to your theme.

Code

How Transfer List is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

"use client";

/**
 * PrequelUI Animate — MIT — https://prequeluianimate.terravidhal.me
 */

import { TransferList, type TransferItem } from "@/components/ui/transfer-list";

const AVAILABLE: TransferItem[] = [
  {
    id: "accessibility",
    label: "Accessibility audit",
    description: "Keyboard, contrast and focus order.",
    badge: "High",
  },
  {
    id: "billing",
    label: "Billing flow",
    description: "Plan changes, proration and invoices.",
    badge: "High",
  },
  {
    id: "onboarding",
    label: "Onboarding copy",
    description: "First-run screens and empty states.",
    badge: "Medium",
  },
  {
    id: "mobile",
    label: "Mobile shell",
    description: "Navigation, gestures and safe areas.",
    badge: "Medium",
  },
  {
    id: "analytics",
    label: "Analytics events",
    description: "Naming, payloads and dashboards.",
    badge: "Low",
  },
  {
    id: "notes",
    label: "Release notes",
    description: "Summary, screenshots and known issues.",
    badge: "Low",
  },
  {
    id: "load",
    label: "Load test",
    description: "Peak traffic and recovery paths.",
    badge: "Medium",
  },
  {
    id: "permissions",
    label: "Permission matrix",
    description: "Roles, scopes and the audit trail.",
    badge: "High",
  },
];

const SELECTED: TransferItem[] = [
  {
    id: "billing",
    label: "Billing flow",
    description: "Plan changes, proration and invoices.",
    badge: "High",
  },
  {
    id: "accessibility",
    label: "Accessibility audit",
    description: "Keyboard, contrast and focus order.",
    badge: "High",
  },
];

const AVAILABLE_ONLY = AVAILABLE.filter(
  (item) => !SELECTED.some((selected) => selected.id === item.id),
);

export default function TransferListDemo() {
  return (
    <main className="flex min-h-screen w-full items-center justify-center bg-background px-4 py-12 sm:px-6">
      <TransferList
        available={AVAILABLE_ONLY}
        selected={SELECTED}
        title="Assign review tasks"
        description="Move work into this review pass, then order it from top to bottom."
        availableLabel="Backlog"
        selectedLabel="This pass"
      />
    </main>
  );
}

Dependencies

More by terra vidhal

View all
  • Gravity Stars Background

    Gravity Stars Background

    16
  • Audio Waveform

    Audio Waveform

    13
  • Topographic Lines

    Topographic Lines

    12
  • Notification Center

    Notification Center

    11
  • Booking Calendar

    Booking Calendar

    10
  • Spotlight Card

    Spotlight Card

    10
  • Command Palette

    Command Palette

    9
  • Kpi Counter

    Kpi Counter

    9

Explore more

Part of PrequelUI Animate — browse the full library on 21st.dev.