React-beautiful-dnd: Custom drag preview?

Created on 2 Oct 2017  ·  2Comments  ·  Source: atlassian/react-beautiful-dnd

Thank you for this great library!! Great work!

Would love to see support for custom drag layer preview as provided by react-dnd.

Thanks!

question ❓

Most helpful comment

Thanks! And congratulations to you and your family on the birth of a baby girl. :)

I have some components that can cover the entire page and so in that case dragging a big component is not very pleasant. I am currently using React DND but will be happy to move once some more features are added like auto scrolling.

All 2 comments

You can update your component while dragging in response to the snapshot.isDragging property. Technically you could render a different component in response to this prop. However, it is recommended not to do this as it is important that your component remains the same dimensions while dragging.

Thanks! And congratulations to you and your family on the birth of a baby girl. :)

I have some components that can cover the entire page and so in that case dragging a big component is not very pleasant. I am currently using React DND but will be happy to move once some more features are added like auto scrolling.

Was this page helpful?
0 / 5 - 0 ratings