I have created a tab component, the one part which I am not able to achieve is that, instead of TabIndicator to entirely take the length of the tab container I need to set only the text width.
Since each text has different width I am using js to calculate it, but instead of getting the width, I am able to get the container width.
How can I make the active TabIndicator line only expand from the start of the text to the end of text.
I am able to achieve the container width. Adding the sandbox link for the same.