Replies: 1 comment
-
Thanks for the discussion and idea. We have not discussed something like this. I think you can build this today using button with a popover containing a Tree. The only other thing you need for form submission is a hidden input hooked up to the selection state. The hidden input could be a HiddenSelect possibly, we don't currently export that from RAC or document it, but we could consider that. It's currently exported from @react-aria/select. The safer option would be to take inspiration from that component though until a decision is made about it. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi React Spectrum team! 👋
I'd love to propose adding a TreeSelect component to React Spectrum. This would be a dropdown component that allows users to select items from hierarchical data structures.
Use Case
I'm working on applications that need to select from nested data like:
Currently, I have to either flatten the data (losing context) or build custom solutions that don't match Spectrum's design standards.
Existing Implementations
This pattern is already proven and widely adopted in other design systems:
I'd be happy to contribute to this if there's interest!
Would love to hear the team's thoughts on this. Is this something that would fit within React Spectrum's roadmap?
Thanks for all your amazing work on this library! 🙏
Beta Was this translation helpful? Give feedback.
All reactions