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.6.tar.gz
(555.1 kB
view hashes)
Built Distribution
Close
Hashes for streamlit_text_toggle-0.0.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ab9d0851693112e8eb422500be84fbc55ce20e5f32a6c477ec7fd0f1ccf70c04 |
|
MD5 | cab40bcd2ee9897eea5571456b63fa18 |
|
BLAKE2b-256 | 5b353a725717d739f1fcbd4a6bf0d7c7c66c7d4db140ecd289b07f423df5df48 |
Close
Hashes for streamlit_text_toggle-0.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5c04a08b4461a36b3ac8f3dd9c9e32f2d65816177fad7b1c3f6f2e7b5259bd49 |
|
MD5 | b97aa5c65e35af37d5ff26852edf3928 |
|
BLAKE2b-256 | cb1a2f4eaf16269fe78aee1d21983b66d8acf0b41b4f73021e47ebfeda309087 |