sorting library suggestions
Unanswered
Muhammed Khal posted this in #help-forum
![Avatar](https://cdn.discordapp.com/avatars/687949322930618369/cff1f797ba2fbd2f6e26f6359977e91d.webp?size=256)
Muhammed KhalOP
Which library should I use for dragging and sorting the elements in next I tried sortablejs but that’s not working in next js but it’s working on react.
Can anyone suggest me which library should I use as you might used in your projects
Can anyone suggest me which library should I use as you might used in your projects
15 Replies
![Avatar](https://cdn.discordapp.com/avatars/687949322930618369/cff1f797ba2fbd2f6e26f6359977e91d.webp?size=256)
Muhammed KhalOP
I want to drag and sort those things
![Image](https://cdn.discordapp.com/attachments/1149340060047638569/1149340299387224114/IMG_7656.jpg)
![Avatar](https://cdn.discordapp.com/avatars/572329183334891520/3ea2e2e134a2327e2b8a7738876a17b5.webp?size=256)
fuma 💙 joulev
I was using react-beautiful-dnd in a side-project, but it's Pages Router
Normally adding these libraries into client components won't cause any problems
Normally adding these libraries into client components won't cause any problems
![Avatar](https://cdn.discordapp.com/avatars/414145877335080960/c7ab639b9f825e9f8db0ed902b831f2b.webp?size=256)
linesofcode
DND kit
![Avatar](https://cdn.discordapp.com/avatars/687949322930618369/cff1f797ba2fbd2f6e26f6359977e91d.webp?size=256)
Muhammed KhalOP
@linesofcode with dnd kit I am able to achive that like the plus button for every element?
With that library can I able too achieve the thing in my app router and the buttons for every element
![Avatar](https://cdn.discordapp.com/embed/avatars/2.png)
European sprat
I also suggested react-dnd days ago when you first asked this
![Avatar](https://cdn.discordapp.com/avatars/687949322930618369/cff1f797ba2fbd2f6e26f6359977e91d.webp?size=256)
Muhammed KhalOP
Yes you're right
dnd kit right
I tried a lot to install react-sortable but I am getting this error
![Avatar](https://cdn.discordapp.com/avatars/572329183334891520/3ea2e2e134a2327e2b8a7738876a17b5.webp?size=256)
fuma 💙 joulev
The button is implemented by yourself, and both libraries mentioned above should be able to achieve your goal
![Avatar](https://cdn.discordapp.com/avatars/687949322930618369/cff1f797ba2fbd2f6e26f6359977e91d.webp?size=256)
Muhammed KhalOP
![Image](https://cdn.discordapp.com/attachments/1149340060047638569/1149359209457127535/WhatsApp_Image_2023-09-07_at_22.20.20.jpg)
Okay Thanks
That error with the react-sortable
![Avatar](https://cdn.discordapp.com/embed/avatars/1.png)
Basset Fauve de Bretagne
for those who are having the issue above, you can check out this thread https://nextjs-forum.com/post/1196470386875957259