Custom Multi-select combobox #2357
beamery-tomht
started this conversation in
General
Replies: 0 comments
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello!
NB: This closely relates to #2162 #1637 and #2218 #1922
I've been working on a custom
MultiSelectcomponent for a separate design system and usingreact-ariaandstatelyheavily. We found your discussions in this repository stating that this feature doesn't exist in react-spectrum yet, it's on your roadmap, and you're looking into a11y concerns. All good.I'd really appreciate any feedback on the approach we've taken. Any guidance for our own approach here on a11y issues, implementation improvements, anything really... Would love to get some insights from the react-spectrum team on this.
A few features we're incorporating:
Some issues we're concerned with:
onKeyDownhandler for the input that duplicates some logic. This is for keyboard events for navigating and selectingItemtype withgetCollectionNodeto apply some defaultsSome questions we have:
ListItemandItem(or our custom Item) are unclear. We don't know whether to focus on custom ListItem components, custom Items or both.Itemcomponents or something that lives in a single custom itemListItemcomponent here but would theItembe better suited and provide wrapping around therenderedprop with ReactElements?Here's a working implementation we have in a little test that we've been exploring.
Beta Was this translation helpful? Give feedback.
All reactions