Closed philosofonusus closed 1 week ago
Integration with react-aria drag and drop?
Integration with react-aria drag and drop?
yes, it could be great, but I see that something like @use-gesture would be better
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!
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.
It would be really great to have a draggable and different kinds of lists in the component library.