Combobox vs. Button #3245
-
Hey team, I'm working on migrating some Evergreen components and interactions to Paste (here). In other parts of the product we use a button that opens a menu of audiences, events, etc that a user can choose from, however I'm wondering if a combobox is a better component to use in this situation. Here are some of my questions:
Thanks for your input! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
Hi @jess-watson,
I think a Combobox works well here. If using a Button, you would have to use the Listbox Primitive to build the popover. It would be simpler, if it's a single panel, to use Combobox.
Your engineers should be able to compose an option within Combobox to create options. We have it in our backlog to add an example to our docs site.
You can make the double panel accessible, but you would need to build everything in it, and it has to be a popover. You can't have that type of content in a combobox value right now. The ARIA APG's Combobox pattern accommodates this, but it doesn't work super well and we don't currently support it. @darcimm came by to discuss the double panel component a little bit ago if you want to review the office hours recording or sync with her: #3104 Hope that helps! Let us know what you decide to do with the double panel component as our team would be curious on how it turns out. Thanks! |
Beta Was this translation helpful? Give feedback.
Hi @jess-watson,
I think a Combobox works well here. If using a Button, you would have to use the Listbox Primitive to build the popover. It would be simpler, if it's a single panel, to use Combobox.
Your engineers should be able to compose an option within Combobox to create options. We have it in our backlog to add an example to our docs site.