Skip to main content

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

alt text

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

Metadata

Release files for streamlit-toggle-button-set 0.0.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for streamlit-toggle-button-set 0.0.6
File Size Uploaded Provenance Actions
streamlit-toggle-button-set-0.0.6.tar.gz 553.8 kB Without provenance Details for streamlit-toggle-button-set-0.0.6.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for streamlit-toggle-button-set 0.0.6
File Interpreter ABI Platform Actions
streamlit_toggle_button_set-0.0.6-py3-none-any.whl Python 3 none any Details for streamlit_toggle_button_set-0.0.6-py3-none-any.whl

Total release size: 1.6 MB

Release files / streamlit-toggle-button-set-0.0.6.tar.gz

Download URL streamlit-toggle-button-set-0.0.6.tar.gz
Size 553.8 kB
Tags Source
SHA-256 checksum
How to use checksums
09636b6f9bb952afabe37ea7cf7abe094d4b6680d39184661bc61c2761a3fc9a
BLAKE2b-256 checksum
How to use checksums
f96af662f0f5e277e26e8ed3ee45089508ebf0b74ac363eb71c4331392599175
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.9.17

Release files / streamlit_toggle_button_set-0.0.6-py3-none-any.whl

Download URL streamlit_toggle_button_set-0.0.6-py3-none-any.whl
Size 1.1 MB
Tags Python 3
SHA-256 checksum
How to use checksums
05b88cc2d4476dba6f4afb9291d651ba9ec77321e11d99e93c2ac0ed652eaebb
BLAKE2b-256 checksum
How to use checksums
5d7793671153686074d6123385d9482da93a7c82ac6f0b910050e19fe38375ec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.9.17

Security for streamlit-toggle-button-set 0.0.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page