Skip to main content

Creates a customizable toggle, and you can change the label's background-color.

Project description

streamlit_toggle_switch_diy

Creates a toggle switch with color and placement customizations, and you can change the label's color.

Installation

pip install streamlit-toggle-switch-diy==1.0.4

Usage

import streamlit as st
import streamlit_toggle_diy as tog

tog.st_toggle_switch(   label=None,
                        key=None,
                        default_value=False,
                        label_after=False,
                        inactive_color='#D3D3D3',
                        active_color="#11567f",
                        track_color="#29B5E8",
                        label_bg_color_start=None,  
                        label_bg_color_end=None,  
                        background_color_near_button_start=None,  
                        background_color_near_button_end=None  
                     )

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

streamlit_toggle_switch_diy-1.0.4.tar.gz (707.4 kB view details)

Uploaded Source

Built Distribution

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

streamlit_toggle_switch_diy-1.0.4-py3-none-any.whl (717.3 kB view details)

Uploaded Python 3

File details

Details for the file streamlit_toggle_switch_diy-1.0.4.tar.gz.

File metadata

File hashes

Hashes for streamlit_toggle_switch_diy-1.0.4.tar.gz
Algorithm Hash digest
SHA256 859bc57002cdfffca1264cf74a2be1b6d3fa846bcfac71d64b6bdcd124b087c8
MD5 6f62fd8d878d72ed54d1c5d5246a77f3
BLAKE2b-256 66e1d496a5e898e03ac5d41802d78ead368b3f805f2411ef2dcfdf4e660d10bb

See more details on using hashes here.

File details

Details for the file streamlit_toggle_switch_diy-1.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for streamlit_toggle_switch_diy-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 ebb2d2e534cffcd81bd42d1fe2af20173910aa339d1039a1832b37e387d60320
MD5 0bbe5c9599a1ca9dbcd5a32d7bdb3a95
BLAKE2b-256 7c630de8d86974f85a521a92fa1a49193f0dd1ae4f0ed0d91137c994c2917c64

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