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
Close
Hashes for streamlit-toggle-button-set-0.0.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b0012785d5d8bd90b310bdae19e90f7002d6b73e476fe9761c43b687230937e3 |
|
MD5 | bb2e0bbc15049111cca890dfb5548b43 |
|
BLAKE2b-256 | 428588878d15e82d656fe872d4b140b692c9394da5f351e2ae23fa4a91d18d82 |
Close
Hashes for streamlit_toggle_button_set-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f9b54587bbaf6c25a1e031f476218de4aaf5434d3db7a6410864b3eb897abf5b |
|
MD5 | b9eee1cb0c5a55bc847601c24f8c8ebf |
|
BLAKE2b-256 | 43cae3c6e7c81058b0748ddcf7ad0a31e21b66eea3bc20c4c2ed7d852a51ca74 |