shadcn-ui / ui

Beautifully designed components that you can copy and paste into your apps. Accessible. Customizable. Open Source.
https://ui.shadcn.com
MIT License
64.53k stars 3.67k forks source link

Feature request: Lists #260

Closed philosofonusus closed 1 week ago

philosofonusus commented 1 year ago

It would be really great to have a draggable and different kinds of lists in the component library.

digoburigo commented 1 year ago

Integration with react-aria drag and drop?

philosofonusus commented 1 year ago

Integration with react-aria drag and drop?

yes, it could be great, but I see that something like @use-gesture would be better

devongovett commented 12 months ago

FYI, the ListBox and GridList components from React Aria Components have drag and drop (including keyboard accessibility) built in out of the box so you don't have to build something from scratch with the hooks. Use ListBox if your list items don't contain any interactive children like buttons, otherwise use GridList. The APIs are almost the same it just changes what ARIA and keyboard navigation pattern is used. Aside from dnd, these components have a ton of other features like row selection and actions, keyboard navigation, touch support, etc. I think this could be a great fit for shadcn-ui!

shadcn commented 1 week ago

This issue has been automatically closed because it received no activity for a while. If you think it was closed by accident, please leave a comment. Thank you.