Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question, how i can render a different element before the drop? #25

Open
mantegnous opened this issue May 2, 2023 · 1 comment
Open

Comments

@mantegnous
Copy link

I'm moving an item from one column to another,
I would like to see a different item in the other column when I move the card closer to it,

for example, I would like to see a +. instead of the card I'm moving

i have only to see the card y in the drag overlay and once I drop it in the other column

do i need to create something custom, like creating fake elements in the various arrays (by current index, position) or is there any way to do this?

image

@viAtom
Copy link

viAtom commented Oct 29, 2024

You should definitely use the <DragOverlay> element (Documentation).
Follow the Presentational components pattern and custom it as you wish, you can then edit the style or layout if you are dragging the overlay or the original component.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants