--- id: streamlit-toggle-switch version: "1.0.2" license: unclear license_treatment: unclear maintenance: abandoned --- # streamlit-toggle-switch — Creates a customizable toggle License: unclear · Maintenance: abandoned · Downloads: 266.4K/mo ## What it is and what it does streamlit-toggle-switch is a Streamlit component library that provides a single widget: a toggle switch with customizable appearance. It wraps the underlying Streamlit framework to expose a `st_toggle_switch()` function that renders an interactive on/off control in your app, letting you set the label text, colors for active and inactive states, track color, and whether the label appears before or after the switch itself. The package depends only on Streamlit and is installed as a pure Python wheel. It is designed for developers building Streamlit dashboards or data apps who need a styled toggle input beyond Streamlit's built-in checkbox. However, the project has been abandoned since late 2023 with no maintenance activity, so it may not work with newer Streamlit releases and will receive no fixes for compatibility issues. Use it for: - Add a branded toggle switch to a Streamlit dashboard with custom colors matching your app's design system - Build a settings panel in a Streamlit app where users enable/disable features via a styled toggle rather than a checkbox - Create a data exploration interface where toggling between two states (e.g., 'raw' vs. 'processed' data) updates the display ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Adds a customizable toggle switch component to Streamlit applications, with control over colors, label placement, and active/inactive states. Yes, if you are maintaining an existing Streamlit app that already uses this component and it works with your current Streamlit version. No, if you are starting a new project—the package is abandoned and will not receive updates. Consider using Streamlit's native checkbox or exploring actively maintained alternatives before committing to this dependency. ## Install pip install streamlit-toggle-switch uv add streamlit-toggle-switch poetry add streamlit-toggle-switch ## Installing streamlit-toggle-switch Before you install: Installation is straightforward with low friction, but the package is abandoned—last release was 2022-10-25 and no commits since 2023-04-28. It still receives moderate downloads (266395 monthly), suggesting existing projects depend on it, but expect no bug fixes or updates. License in practice: License treatment is unclear; no SPDX identifier or raw license text is provided. Before using in a commercial or copyleft-sensitive project, verify the actual license from the repository. Quickstart: pip install streamlit-toggle-switch import streamlit as st import streamlit_toggle as tog tog.st_toggle_switch(label="Label", key="Key1", default_value=False, active_color="#11567f") Verify before relying: - Whether the unclear license is compatible with your project's licensing requirements - Whether the package works reliably with current Streamlit versions (no updates since 2022) ## Package facts - License: not declared (unclear) - Python support: supports_current - Install friction: low - Maintenance: abandoned - Downloads: 266.4K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags streamlit toggle switch component, streamlit custom toggle button, streamlit ui toggle control, streamlit interactive switch widget, streamlit form toggle input, streamlit-component, ui-widget, abandoned [View on SkillFed](https://skillfed.io/packages/streamlit-toggle-switch) · [View on PyPI](https://pypi.org/project/streamlit-toggle-switch/)