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
-
Hello!
NB: This closely relates to #2162 #1637 and #2218 #1922
I've been working on a custom
MultiSelect
component for a separate design system and usingreact-aria
andstately
heavily. 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:
onKeyDown
handler for the input that duplicates some logic. This is for keyboard events for navigating and selectingItem
type withgetCollectionNode
to apply some defaultsSome questions we have:
ListItem
andItem
(or our custom Item) are unclear. We don't know whether to focus on custom ListItem components, custom Items or both.Item
components or something that lives in a single custom itemListItem
component here but would theItem
be better suited and provide wrapping around therendered
prop 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