radix-ui / primitives

Radix Primitives is an open-source UI component library for building high-quality, accessible design systems and web apps. Maintained by @workos.
https://radix-ui.com/primitives
MIT License
15.82k stars 821 forks source link

[New Primitive] `SortableList` #806

Open VaibhavAcharya opened 3 years ago

VaibhavAcharya commented 3 years ago

Feature request

Overview

A accessible primitive drag and drop for sortable lists (& other stuff).

Examples in other libraries

Who does this impact? Who is this for?

Would be helpful for all users as this feature can be seen at many places now. Ex. Notion, Github, etc.

Additional context

Demo from react-beautiful-dnd

andy-hook commented 3 years ago

Nice suggestion! tagging @colmtuite for visibility / future consideration.

rafgraph commented 3 years ago

+1 for this. Every app I’ve worked on (of substantial size) has needed something like this. To have a primitive with an easy to use api that works cross device/input/browser would be awesome!!

andrevenancio commented 3 years ago

+1 too

colmtuite commented 3 years ago

Are there specific issues that you all see in the other libs mentioned above? Or is it more a matter of wanting similar APIs for all components in your app?

andrevenancio commented 3 years ago

In my specific case, similar API components.

chris-kruining commented 2 years ago

I have made a sortable list primitive with dndkit for my project, would that be welcome as a PR? (Note that my primitive is just a sortable list, no adding/deleting items, no nested lists. yet)