Socket
Socket
Sign inDemoInstall

streamlit-toggle-button-set

Package Overview
Dependencies
0
Maintainers
1
Alerts
File Explorer

Install Socket

Detect and block malicious and high-risk dependencies

Install

    streamlit-toggle-button-set

A multi-select button group


Maintainers
1

Readme

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

FAQs


Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc