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.7.tar.gz
(564.6 kB
view hashes)
Built Distribution
Close
Hashes for streamlit_text_toggle-0.0.7.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9a0798d32b0bbfe36b853c142c21abd76e5887114673a46a57b253c1b1dd5e20 |
|
MD5 | 6abb2c0661011c8b604ff472f24b7a49 |
|
BLAKE2b-256 | e00e79a4bcab8f05cb3a57e15a07b3cf5b933e172b1b17031e2d4ece02c94226 |
Close
Hashes for streamlit_text_toggle-0.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9f42f69dcd9a03bb3200e48b39f82d0a1846e3d6c6556df7ae2d43f1c0d85c41 |
|
MD5 | a92136fda02876e16f943ab3de171825 |
|
BLAKE2b-256 | 3eab86485bc4b0780b002b476b165b2fa6cebe90de7256dd8014b9b3c558e500 |