Selecting a specific st.tabs tab using hyperlink

Hi, I like the way the new Tabs work and loads quickly. Is there a way to control the selected tab using a href reference from a st.markdown? Or some way to cause it to load a tab programmatically? For some context, I’m trying to use NavBar to control a tab page load. Trying to understand feasibility before jumping into rabbit hole.


Hey @asw888,

Unfortunately, we do not provide a native way to do that. In particular, I don’t think HTML href would be sufficient as I believe JS is required to trigger the active tab.

In the past, @blackary has done some similar magic with pages, so deferring to him in case he has an idea for tabs!


Thanks @arnaud for responding.

1 Like