Transfer List
stableMoves options between available and selected lists.
Basic usage
Examples
Custom panel titles
Rename the source and target panels to match the workflow.
Disabled options
Disable options that cannot be moved.
Controlled transfer
Use value and onValueChange when app state owns the selected side.
Features
- Controlled or uncontrolled.
- Checkbox selection.
Installation
bash
pnpm dlx structyl add transfer-listAPI Reference
TransferList
Two-list transfer control.
| Prop | Type | Default |
|---|---|---|
| options | { value: string; label: React.ReactNode; disabled?: boolean }[]Available options. | — |
| value | defaultValue | string[]Controlled or uncontrolled selected values. | — |
| onValueChange | (value: string[]) => voidCalled after moving values. | — |
| sourceTitle | targetTitle | React.ReactNodePanel headings. | — |
| className | stringAdditional Tailwind classes merged with the component defaults. | — |