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)
Arguments
REQUIRED:
button_list
OPTIONAL:
(default = []) - a subset of the button_list that is selected upon rendering.
(color = "standard") - The color of the button when it is selected, options includes 'standard', 'primary', 'secondary', 'error', 'info', 'success' and 'warning'.
(size = "medium") - The size of the component, options includes 'small', 'medium', 'large'.
(exclusive = False) - only allow one of the button_list to be selected.
(use_container_width = False) - will take up the full width of its container.
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
Hashes for streamlit-toggle-button-set-0.0.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b87a13d70251cdca9c8ba00ba42ca8441aaec0cd2ac1970323f8a54579b46ccc |
|
MD5 | 2599a00abe36fc76537a75275a83f942 |
|
BLAKE2b-256 | 21c6b7865524de5e56d0a829572063b7c57783deae5597cd7f5d3a6c22dbdaf8 |
Hashes for streamlit_toggle_button_set-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dc28978c24417fb231b6e7d0906a5eb32aeccce1f8eff3575afcb43a87954907 |
|
MD5 | baae61a491bafe423ad17d8660687fcc |
|
BLAKE2b-256 | f23920547c075c0c66eac5d03866f409006b91cd8685ced4d604c10e1fb76e38 |