Can I distribute leftover space evenly when using auto-layout?

I’m trying to do a tab-component, that would work just like flexbox does.

Tabs should stretch to fill the available space. The tabs should not all be equally sized but sized according to their intrinsic width, and the left over space should be distributed between them.

You can see my image here, can I do this?

For this use case, are you wanting the purple line to go all the way across? Or just for the active tab? And if just the active tab, does it stop just after the ends of the text, or do you want to extend the line longer to fill up 50% of the empty space to the left and right?

I added more images to hopefully make it more clear what I’m after.

I want the tabs to span the full width of the container element without the tabs to be forced into equal width. That is, they should each take up their intrinsic width (which is different because the text is different) and then they should divide the remaining space between them so that they fill the container.

This is how I want it to behave.
Screenshot 2021-02-10 at 08.38.40

This is how it behaves.
Screenshot 2021-02-10 at 08.43.16

You can see my file: Figma
Is this what you need?