I’m rebuilding a load of our components, and was hoping to make a top navbar component that can display any nav item tab as selected without having to resort to making a variant for each item showing as highlighted.
I’d like to have a single navbar component, with a sub-component for the different states of the tabs (selected/unselected), and then just use whatever functionality Figma offers to allow a single dropdown to select the live tab.
I can see that it’s possible if I expose properties from nested instances, but that then means I display a full list of each menu item as a property, and all have to be switched off apart from the selected one, which is clumsy.
I’ve currently settled on an unsatisfactory compromise where I’ve build a single navbar component, and then made a nested component for just the tabs themselves. I still have to then make a variant for each of the nav items, albeit just for the tabs and not the whole bar.
Is it currently possible to do what I’d like?
