A multi-select button group
Project description
streamlit_text_toggle
A button can be used to group related options (multi-select & single select), inspired by React Material UI.
Installation instructions
pip install streamlit_text_toggle
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 = [] - must be a subset of button_list, these options are automatically selected upon boot.
- 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' and 'large'.
- exclusive = False - forces only one item to be selected from button_list.
- use_container_width = False - will make the component take up the full width of its container.
- key = None - optional key
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_text_toggle-0.0.1.tar.gz
(555.0 kB
view hashes)
Built Distribution
Close
Hashes for streamlit_text_toggle-0.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 70b10462275ddfc9fb20ce6ce3daa4f04f9283913106adf5cec10d6288d4befc |
|
MD5 | 14f9f60471f3a6033b62a3601307fd60 |
|
BLAKE2b-256 | 1371ea953cbd3736cf8557d34283b9c1867668b318e67466ae316a2f05198e0b |
Close
Hashes for streamlit_text_toggle-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8a7e0c81b42b6c23eb2bee29ea1122b078ada40fe5fd8891f976fc53770184b2 |
|
MD5 | 8133c40ec0dae3fa20f49a530169bfce |
|
BLAKE2b-256 | 431af93c4c46bb31233adfe057ada4c8a0a44fd3f65bdc9c23ef7185453b63ef |