adobe / react-spectrum

A collection of libraries and tools that help you build adaptive, accessible, and robust user experiences.
https://react-spectrum.adobe.com
Apache License 2.0
12.61k stars 1.09k forks source link

[RAC] Add `orientation` prop to `GridList` #6928

Open Niznikr opened 3 weeks ago

Niznikr commented 3 weeks ago

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

snowystinger commented 3 weeks ago

Thanks for the issue. We could consider this, though it's not currently a priority for us. We'd review a contribution.