/st_tabs

Package to make customizable Tab Bar

Primary LanguagePython

st_tabs

Streamlit component that allows you to do change the tabbar as per your need

The component has implemented Material UI Tab Bar in order to create simple yet smotth interface with the functionality to change its background color,textcolor,hoverstate color,font-size and font-weight respectively.

The component returns the index of the Tab that is currenly selected/active.

pypi package link st_tabs

Installation instructions

pip install st_tabs

Usage instructions

import streamlit as st

from st_tabs import TabBar

component1=  TabBar(tabs=["Tab1","Tab2"],default=0,background = "red",color="grey",activeColor="blue",fontSize="20px")
#Handle your tabbar usecases here.
if(component1 == 0):
    st.write("Hooray! we are in Tab1")
else:
    st.write("Yippee! We are in Tab2 ")

Please feel free to give feedback and suggestions to make it better.