Metadata-Version: 2.1
Name: streamlit-toggle-button-set
Version: 0.0.2
Summary: A multi-select button group
Home-page: 
Author: Ben Guo
Author-email: benjaminguo14@gmail.com
Requires-Python: >=3.7
Description-Content-Type: text/markdown
Provides-Extra: devel
License-File: LICENSE

# streamlit-toggle-button-set

A button can be used to group related options (multi-select & single select), inspired by React Material UI.

## Installation instructions

```sh
pip install streamlit-toggle-button-set
```

## Usage instructions

```python
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)

# REQUIRED:
# button_list

# OPTIONAL:
# default - a subset of the button_list that is selected upon rendering.
# (default = [])
# color - The color of the button when it is selected, options includes 'standard', 'primary', 'secondary', 'error', 'info', 'success' and 'warning'.
# (color = "standard")
# size - The size of the component, options includes 'small', 'medium', 'large'.
# (size = "medium")
# exclusive -  only allow one of the button_list to be selected.
# (exclusive = False)
# use_container_width - will take up the full width of its container.
# (use_container_width = False)
```
