Since Tabs can render as either text or Views, you just need to supply a View which has both an Icon and a Label present. (Update: documentation)
Here’s how I did this:
props.tabs, and select “Change To” and select “Object”.
props.tabs and select “Add Object Member”, then supply a key of “viewPath”.
- Supply a valid viewPath.
In my project, there exists a View (“Experimentation/Repl”) which contains an Icon and a Label. If your View requires parameters, you can also supply a
viewParams object alongside
NOTE: In 8.0.13 there might be a bug which prevents tabs which use Views from rendering their borders as expected. We’re looking into whether or not this is expected. In the example I provided, I also cheated and supplied borders of my own to simulate the borders as they SHOULD appear.