RFC: Combobox #509
anitavincent
started this conversation in
Technical RFCs
Replies: 4 comments
-
Design proposition reference: https://www.figma.com/file/sepBhrHViUHyrTnktkuHaW/Admin-UI-%E2%80%93-Components?node-id=9607%3A244090&t=Jqa7kvSXusKceBIQ-3 |
Beta Was this translation helpful? Give feedback.
0 replies
-
A couple of changes I would make:
There are still unresolved questions for me. Maybe on a prototype, they're solved:
A thing that will help it to fill the template I've edited. The motivation (problem and why) it's really important. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Changes I would make:
{selectValue?.map((val) => (
<SelectedTag
state={state}
id={val.id}
label={val.label}
/>
))
: undefined} Unresolved questions
|
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
-
RFC Combobox
Problem
The current architecture for the combobox component is not flexible enough to implement different use cases, covering only specific scenarios. The current combobox was also built based on outdated design specs that were changed or are under review. We need to rebuild the component and design an API that's flexible enough to enable multiple use cases.
Why this matters?
Variations of comboboxes are often used on VTEX's admin pages and the component we currently provide doesn't aid developers much, we need a component that's able to cover different use cases and with a design that integrates well with our design directives. By reviewing our API we can make the combobox component useful for more people and facilitate the implementation of combobox UXs.
Proposal
DRAFT
The initial proposal provides a state that enables Combobox functionality and atomic components that can be used by the dev. The dev could replace any of the components with a custom one and only use the state.
Atomic components:
Rough usage example (for single select):
Pros
Cons
Unresolved questions
What's next
Do you know if there are any follow-ups? (It can also be another RFC)
Beta Was this translation helpful? Give feedback.
All reactions