Skip to main content

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

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

st_tabs-0.1.1.tar.gz (621.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

st_tabs-0.1.1-py3-none-any.whl (627.4 kB view details)

Uploaded Python 3

File details

Details for the file st_tabs-0.1.1.tar.gz.

File metadata

  • Download URL: st_tabs-0.1.1.tar.gz
  • Upload date:
  • Size: 621.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for st_tabs-0.1.1.tar.gz
Algorithm Hash digest
SHA256 6bb090d9c09ffa7a621b284ecc9ba84c56f366f656c65501f36e9cf591e4fbb6
MD5 f59ad15509dfef566bd39e97ea9e2195
BLAKE2b-256 fbb9f2d0593b80991eddb5f73c113c1d9d090b4564dba984e65b8823b9d119cc

See more details on using hashes here.

File details

Details for the file st_tabs-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: st_tabs-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 627.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for st_tabs-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a12c3cc6aeaf7a37f86239447349729a187d7e19047ddc20b69dfa154c57120a
MD5 70d7bfb5414caaec0df8aad4f22f9e98
BLAKE2b-256 8be153591389caea01689dc923bbb69426d0377e28dd3cb85bb1ab0ed365bd9a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page