react-spectrum
react-spectrum copied to clipboard
[RAC] Add `orientation` prop to `GridList`
Provide a general summary of the feature here
Thanks for the work on https://github.com/adobe/react-spectrum/pull/6486. I think an orientation prop similar to ListBox would still be useful in GridList to allow horizontal arrow keys for drag-n-drop. We have items arranged horizontally in our case but can't use ListBox as the items contain interactive elements.
๐ค Expected Behavior?
An orientation prop is available in GridList to allow horizontal arrow keys for drag-n-drop.
๐ฏ Current Behavior
Vertical arrow keys are the only option for drag-n-drop in GridList.
๐ Possible Solution
No response
๐ฆ Context
We have items arranged horizontally in our GridList as we can't use ListBox because the items contain interactive elements.
๐ป Examples
No response
๐งข Your Company/Team
No response
๐ท Tracking Issue
No response
Thanks for the issue. We could consider this, though it's not currently a priority for us. We'd review a contribution.
I would like to see the orientation prop, but really I'd like for the grid pattern to be fully implemented so 2 dimensions can be used ๐
https://www.w3.org/WAI/ARIA/apg/patterns/grid/#layoutgridsforgroupingwidgets https://www.w3.org/WAI/ARIA/apg/patterns/grid/examples/layout-grids/
You can set layout="grid" as a prop.