Hulian UIv0.93.5413 components0 components
  • Start
  • Components
  • Blocks
  • Pages
  • Demos
  • Changelog
ChineseEnglish
  • ComponentsComponents
  • ThemeTheme

Buttons

  • Button
  • ShimmerButton
  • InteractiveHoverButton
  • RainbowButton
  • PulsatingButton
  • RippleButton
  • ButtonGroup
  • SocialButton

Basic Inputs

  • Input
  • Textarea
  • CellEditor
  • Select
  • Checkbox
  • CheckboxGroup
  • Radio
  • Switch
  • Toggle
  • Segmented
  • Slider
  • NumberField
  • ElasticSlider

Advanced Inputs

  • MathTextarea
  • QuestionEditor
  • QuestionAnswer
  • MathField
  • SecretField
  • PasswordGenerator
  • Combobox
  • RemoteSelect
  • Listbox
  • Mentions
  • InputOTP
  • Rating
  • Upload
  • RegionSelect
  • ImageCropper
  • ScopeMatrix
  • Transfer
  • Cascader
  • TreeSelect
  • RegionCascader
  • CountrySelect
  • MarkdownEditor
  • Novel editor
  • RichTextEditor
  • CodeEditor
  • IssueReporter
  • ColorPicker
  • ColorField
  • ColorSwatchPicker
  • Choicebox
  • EmojiPicker
  • VoiceRecord
  • IconPicker
  • InspectorPanel

Date and Time

  • Calendar
  • DatePicker
  • DateTimePicker
  • DateRangePicker
  • TimePicker
  • TimeField

Form Frameworks

  • Form
  • ModalForm / DrawerForm
  • ProForm
  • StepsForm
  • LoginForm
  • AuthPanel
  • ClickCaptcha
  • Label
  • Field
  • SearchForm

Transfer

transfer

Moves selected records between available and chosen lists with search support.

Usage

Basic usage

After checking the left item, use the middle arrow to move in/out (›/‹ to move selected, »/« all). When not controlled, use defaultTargetKeys to set the initial selection.

All functional modules9
Member ManagementLevel/Points/Tag
Marketing CampaignCoupons and discounts
Financial ReconciliationLogistics and Settlement Statement
Logistics and distributionWaybill and delivery area
Evaluation ManagementBuyer comments and replies
Operating StatementSales / Repeat Purchase / Funnel
Employees and PermissionsRoles and sub-accounts
Message notificationSite letter and SMS template
Old version of the ticket (discontinued)Freeze after migrating to new work order
Authorized3
Data dashboardOverview of real-time operating indicators
Order ManagementOrder / Refund / After-sales
Product CenterShelves and inventory
tsx
<Transfer
  dataSource={modules}
  defaultTargetKeys={["dashboard", "orders", "goods"]}
  titles={["All function modules", "Authorized"]}
  onChange={(target) => save(target)}
/>

Searchable

searchable Place a search box at the top of each side panel. Enter and filter by label.

All functional modules11
Order ManagementOrder / Refund / After-sales
Product CenterShelves and inventory
Member ManagementLevel/Points/Tag
Marketing CampaignCoupons and discounts
Financial ReconciliationLogistics and Settlement Statement
Logistics and distributionWaybill and delivery area
Evaluation ManagementBuyer comments and replies
Operating StatementSales / Repeat Purchase / Funnel
Employees and PermissionsRoles and sub-accounts
Message notificationSite letter and SMS template
Old version of the ticket (discontinued)Freeze after migrating to new work order
Authorized1
Data dashboardOverview of real-time operating indicators
tsx
<Transfer
  dataSource={modules}
  defaultTargetKeys={["dashboard"]}
  searchable
  searchPlaceholder="Search module name"
  titles={["All function modules", "Authorized"]}
/>

Disabled overall

disabled makes the list and move buttons on both sides invalid.

All functional modules10
Product CenterShelves and inventory
Member ManagementLevel/Points/Tag
Marketing CampaignCoupons and discounts
Financial ReconciliationLogistics and Settlement Statement
Logistics and distributionWaybill and delivery area
Evaluation ManagementBuyer comments and replies
Operating StatementSales / Repeat Purchase / Funnel
Employees and PermissionsRoles and sub-accounts
Message notificationSite letter and SMS template
Old version of the ticket (discontinued)Freeze after migrating to new work order
Authorized2
Data dashboardOverview of real-time operating indicators
Order ManagementOrder / Refund / After-sales
tsx
<Transfer dataSource={modules} defaultTargetKeys={["dashboard", "orders"]} disabled />

When to use

Use Transfer to move permissions, visible fields, allowlist entries, or similar items from a complete source set into a target set while keeping both sides visible and searchable. It is clearer than a multiple Listbox for dozens or hundreds of candidates that must be compared in batches. Use Listbox multiple when one column is enough.

Import

ts
import { Transfer } from "@hulianui/ui"

Props

NameTypeDefaultDescription
dataSource*TransferItem[]-Full data source; each item key/label, can bring description/disabled
targetKeysstring[]-Controlled: Set of keys for the right (target) panel
defaultTargetKeysstring[][]Uncontrolled initial target keys.
searchablebooleanfalseShow search box at top of each panel
searchPlaceholderstring"\u641c\u7d22"Search input placeholder; the built-in Chinese copy means “Search.”
filterOption(input: string, item: TransferItem) => booleanlabel contains matchesCustom filtering (default case-insensitive substring)
listHeightnumber240The maximum height of the panel list area (px). If you have hundreds of node permissions/department data, increase it, otherwise the panel will be squeezed into a gap.
showSelectAllbooleanfalseThe panel title bar displays the Select All checkbox (only applies to available items in the current filter results)
disabledbooleanfalseDisabled overall (lists and move buttons on both sides are disabled)
classNamestring-Container class name

TransferItem

NameTypeDefaultDescription
key *string-Unique key, also the value used by targetKeys.
label *ReactNode-Primary text of the entry.
descriptionReactNode-Secondary description shown under the label.
disabledbooleanfalseThe entry cannot be selected or moved.

Events

EventTypeDescription
onChange(targetKeys: string[], direction: "left" | "right", movedKeys: string[]) => voidCallback after the move, direction is "right" (selected)/"left" (removed)

Slots

SlotTypeDescription
titles[ReactNode, ReactNode]Source and target panel titles; the default is ["\u6e90\u5217\u8868", "\u5df2\u9009"], built-in Chinese copy meaning “Source list” and “Selected.”

Example

tsx
const [target, setTarget] = useState<string[]>(["dashboard", "orders"]);
<Transfer
  dataSource={modules}
  targetKeys={target}
  onChange={setTarget}
  titles={["All modules", "Authorized"]}
  searchable
/>

Usage guidelines

  • The first onChange argument is the complete target-key set after movement, so it may be passed directly to setTarget; do not merge movedKeys manually. direction and movedKeys support audits or change summaries.
  • Disabled items cannot be selected or moved by the Move All actions, allowing historical entries to remain frozen.
  • Select All with showSelectAll covers only enabled items in the current filtered result. If search shows three of 200 items, only those three are selected; clear the query before selecting the full set.
  • Panel lists are not virtualized. For thousands of items, use listHeight and scrolling; at tens of thousands, group or lazy-load data before passing it to Transfer.

Related

SecretField · Combobox · Listbox · Mentions · InputOTP · Rating

Playground

All functional modules9
Member ManagementLevel/Points/Tag
Marketing CampaignCoupons and discounts
Financial ReconciliationLogistics and Settlement Statement
Logistics and distributionWaybill and delivery area
Evaluation ManagementBuyer comments and replies
Operating StatementSales / Repeat Purchase / Funnel
Employees and PermissionsRoles and sub-accounts
Message notificationSite letter and SMS template
Old version of the ticket (discontinued)Freeze after migrating to new work order
Authorized3
Data dashboardOverview of real-time operating indicators
Order ManagementOrder / Refund / After-sales
Product CenterShelves and inventory
<Transfer
  dataSource={modules}
  targetKeys={target}
  onChange={setTarget}
  titles={["All function modules", "Authorized"]}
/>
PreviousScopeMatrixFormsNextCascader

On this page

  • Usage
  • Documentation
    • When to use
    • Import
    • Props
    • Events
    • Slots
    • Example
    • Usage guidelines
    • Related
  • Playground