TidalUI

Transfer list preview

Assign records between two labelled sets with explicit selection and move actions.

pro · Forms · composite

When to use

Alternatives

Configure components.json and the @tidal-pro namespace before installing Pro components.

Installation

npx shadcn@latest add @tidal-pro/transfer-list

Import components/ui/tidal.css, components/ui/transfer-list.css. Wrap installed components in tidal-scope.

Preview

Transfer list component preview

Open interactive preview

Minimal example

import"./components/ui/tidal.css";
import"./components/ui/transfer-list.css";
import{TidalTransferList}from"./components/ui/transfer-list";
export default(p:Parameters<typeof TidalTransferList>[0])=><div className="tidal-scope"><TidalTransferList {...p}/></div>;

API and props

TidalTransferList.destinationItems (required)
ReadonlyArray<TidalTransferItem>

Required destination items value accepted by this exported component.

TidalTransferList.destinationLabel (required)
string

Required destination label value accepted by this exported component.

TidalTransferList.destinationSelectedIds (required)
ReadonlyArray<string>

Required destination selected ids value accepted by this exported component.

TidalTransferList.label (required)
string

Required label value accepted by this exported component.

TidalTransferList.onDestinationSelectionChange (required)
(selectedIds: readonly string[], item: TidalTransferItem, checked: boolean) => void

Callback invoked when the destination selection change interaction is proposed.

TidalTransferList.onMoveToDestination (required)
(itemIds: readonly string[], event: ReactMouseEvent<HTMLButtonElement>) => void

Callback invoked when the move to destination interaction is proposed.

TidalTransferList.onMoveToSource (required)
(itemIds: readonly string[], event: ReactMouseEvent<HTMLButtonElement>) => void

Callback invoked when the move to source interaction is proposed.

TidalTransferList.onSourceSelectionChange (required)
(selectedIds: readonly string[], item: TidalTransferItem, checked: boolean) => void

Callback invoked when the source selection change interaction is proposed.

TidalTransferList.sourceItems (required)
ReadonlyArray<TidalTransferItem>

Required source items value accepted by this exported component.

TidalTransferList.sourceLabel (required)
string

Required source label value accepted by this exported component.

TidalTransferList.sourceSelectedIds (required)
ReadonlyArray<string>

Required source selected ids value accepted by this exported component.

TidalTransferList.destinationPanelProps
TransferPanelProps | undefined

Optional destination panel props value accepted by this exported component.

TidalTransferList.destinationPanelRef
Ref<HTMLDivElement> | undefined

Optional destination panel ref value accepted by this exported component.

TidalTransferList.disabled
boolean | undefined

Optional disabled value accepted by this exported component.

TidalTransferList.headingLevel
"h2" | "h3" | "h4" | "h5" | "h6" | undefined

Optional heading level value accepted by this exported component.

TidalTransferList.labels
Partial<TidalTransferListLabels> | undefined

Optional labels value accepted by this exported component.

TidalTransferList.moveAllToDestinationProps
TransferActionProps | undefined

Optional move all to destination props value accepted by this exported component.

TidalTransferList.moveAllToDestinationRef
Ref<HTMLButtonElement> | undefined

Optional move all to destination ref value accepted by this exported component.

TidalTransferList.moveAllToSourceProps
TransferActionProps | undefined

Optional move all to source props value accepted by this exported component.

TidalTransferList.moveAllToSourceRef
Ref<HTMLButtonElement> | undefined

Optional move all to source ref value accepted by this exported component.

TidalTransferList.moveSelectedToDestinationProps
TransferActionProps | undefined

Optional move selected to destination props value accepted by this exported component.

TidalTransferList.moveSelectedToDestinationRef
Ref<HTMLButtonElement> | undefined

Optional move selected to destination ref value accepted by this exported component.

TidalTransferList.moveSelectedToSourceProps
TransferActionProps | undefined

Optional move selected to source props value accepted by this exported component.

TidalTransferList.moveSelectedToSourceRef
Ref<HTMLButtonElement> | undefined

Optional move selected to source ref value accepted by this exported component.

TidalTransferList.sourcePanelProps
TransferPanelProps | undefined

Optional source panel props value accepted by this exported component.

TidalTransferList.sourcePanelRef
Ref<HTMLDivElement> | undefined

Optional source panel ref value accepted by this exported component.

Complete usage

Full example, stylesheet imports, API and accessibility documentation

Gotchas