Hi,
I'm a bit stuck on how my approach should be regarding creating our dropdown component + logic, which will be used in several places in my app. One use-case would for example be in our selectable pill component.
My goal is to create a component, which encapsulates all the functionality regarding show/hide the dropdown options, automatically calculating the placement of the dropdown + width and having slots for a trigger and dropdown option list component. I am having a hard time trying to figure out the best approach for creating lightweight and flexible solutions and I wonder if anyone has some great experience or suggestions?
I have tried to visualize one common use case with our selectable pill component.
I hope someone can help me out🙌🙏