Component libraryTransfer list
Transfer list
ProAssign records between two labelled sets with explicit selection and move actions.
npx shadcn@latest add @tidal-pro/transfer-listInstallation
Pro source is gated. Configure the @tidal-pro registry using the agent guide. Create an access key from your account after purchasing.
Terminal
Import components/ui/tidal.css, components/ui/transfer-list.css, components/ui/checkbox.css, then add the component inside a tidal-scope wrapper. Its scoped design tokens keep it independent of your existing CSS.
Usage
Complete example source · Dependency and asset manifest
Loading the complete example…
API & behavior
Controlled source and destination arrays require stable string IDs that are unique across both sets, string labels and optional descriptions, disabled state, native list-item props, native Checkbox props and Checkbox refs. Controlled selected-ID arrays and required selection callbacks keep selection consumer-owned. Two required move callbacks receive enabled record IDs and the native click event; consumers accept or decline each proposal and own all data changes, validation, persistence and side effects. Move-selected and move-all actions are persistent native type=button controls with separate native props and refs, caller-first click prevention, and normalized disabled and aria-disabled behavior. Accepted moves focus the first transferred Checkbox when it is visible; a persistent enabled action receives focus when a stacked phone target is off screen. Disabled records remain visible and never move. Root label, native section props/ref, headingLevel h2 through h6, panel props/refs, localized labels/count formatter, global disabled state, empty sets, long text, RTL and stacked narrow layout are supported. The component performs no hidden mutation, drag behavior, network request or storage.
Style with the --t-* CSS variables. Set data-theme="dark" on your tidal-scope wrapper for a dark surface. Motion respects the system’s reduced-motion preference.