A multi-select button group
Project description
streamlit-toggle-button-set
A button can be used to group related options (multi-select & single select), inspired by React Material UI.
Installation instructions
pip install streamlit-toggle-button-set
Usage instructions
import streamlit as st
from toggle_button_set import toggle_button_set
outcome = toggle_button_set(
button_list=['a', 'b', '1', '2'],
default=['a', '1'],
color="primary",
size="large",
exclusive=False,
use_container_width=False
)
st.write(outcome)
# REQUIRED:
# button_list
# OPTIONAL:
# default - a subset of the button_list that is selected upon rendering.
# (default = [])
# color - The color of the button when it is selected, options includes 'standard', 'primary', 'secondary', 'error', 'info', 'success' and 'warning'.
# (color = "standard")
# size - The size of the component, options includes 'small', 'medium', 'large'.
# (size = "medium")
# exclusive - only allow one of the button_list to be selected.
# (exclusive = False)
# use_container_width - will take up the full width of its container.
# (use_container_width = False)
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
Built Distribution
Close
Hashes for streamlit-toggle-button-set-0.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ee02978ddebae9fa8a7dd56105c474fbf371441df504f964c3eed1ee0247b809 |
|
MD5 | 671207ca2af3d28fde870294eec3129c |
|
BLAKE2b-256 | 5299380a42c0650f59b6897f78fa065949daec2725f0039ed6ed0500a23d999d |
Close
Hashes for streamlit_toggle_button_set-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 201232ef9d05f1b256ae92f0ce21a7a2004f33225b66a8b3784ad96c2ea77898 |
|
MD5 | c0e2d2d9a83abdd5f54d72ba99d9da87 |
|
BLAKE2b-256 | be7cac28ab28003877be5c7facd52d88b760ad7f591daa77a17e95723276ed17 |