Sortable
Two List Transfer
Transfer between two lists where the receiver never collapses into a strip: an empty list keeps its height and an explaining caption, and every row has a transfer button.
What you can change
- the source and target arrays
- sourceTitle and targetTitle — the panel headings
- emptyText, sendLabel and movedLabel — they take {item}, {from}, {to}, {sourceTitle}, {sourceCount}, {targetTitle} and {targetCount}
A link for your AI agent: preview, code and instructions.
Preview
Use it with AI
- 1. Copy the link.
- 2. Write to your agent in your own words and drop the link into the sentence.
- 3. The agent opens the link and installs the component from the registry.
put this on the home page as the hero:
https://vibeui.ru/c/sortable-004?lang=en&theme=dark
Not sure where to paste it? Step-by-step guide
Show the full instructions
What the link says, spelled out. Use it when your agent cannot open links — paste this text instead.
Loading…
For developers
The install command lives in the “Component source” block below — a signed link that stays valid for 24 hours.
Technical notes
The component is self-contained: one file, no dependencies, its own palette in local variables --vibeui-sortable-004-*. Client-side: "use client" for the sake of both lists' state. The panels are described by a single array and drawn by shared markup, so both sides behave alike. The minimum panel height is set explicitly, so an empty list stays a visible target for the mouse. The arrow button on every row names both sides of the transfer, and the role=status live region reports the result and what is left in both lists. The theme comes from the surrounding color-scheme through light-dark(): the component has no surface of its own by default, it sits directly on the page background. The empty-panel caption, the button label and the live-region phrase are lifted into props, the Russian values remain the defaults.
Tags
- sortable
- transfer
- dual-list
- a11y
Component source
The same file your agent installs. Here in case you would rather copy it by hand.
Loading…