Is this really how you create a drop down menu component?
I want to create a simple combo box drop down menu with about 10 menu items.
I ad a rectangle shape and a caret icon in the corner then add a text field.
I then draw the same shape without the icon and just the text.
With the second rectangle and the text selected I create a component. called InactiveItem
I next create a hover state on the InactiveItem and change the color of the component artwork.
That covers the hover interaction for each menu item (except the selected menu item).
Next, I create a repeating field where this component is copied for each menu item.
I change the text on each menu item.
Next, I select the entire collection of things and create a component. called MenuOpen
Since I have 10 menu items, do I have to then create 20 states so that each menu item (when selected) appears at the top with the others hidden and then 10 additional states for when the menu is open?
Then I link all of the items (9) in the menu to their related closed state. And the closed states to the open states for each menu item? That is so many opportunities to mess up. That is so much duplicated work.
That is absolute bonkers.
There has to be a better way to do a dropdown menu.
