A slider with a lot more features in it than the built in one.
Project description
streamlit-super-slider
Streamlit Super Slider
Streamlit Super Slider is a custom component for Streamlit that extends the functionality of the default slider. It provides a more interactive and user-friendly experience with additional features to enhance usability.
Features
- Updates Streamlit only on mouse release, not during dragging the mouse.
- Includes an input text box attached to the slider where changing the value in either updates the value in the other (input text changes the slider and vice versa).
- Arrow buttons to increase/decrease the value by one, providing a "next" or "previous" button functionality.
- Built-in keyboard shortcuts for quick navigation: "," (comma) for previous and "." (period) for next.
Installation
You can install the package via pip:
pip install streamlit-super-slider
Usage
To use the Streamlit Super Slider in your Streamlit app, you simply need to import it and use the st_slider
function. The function signature is:
st_slider(min_value, max_value, default_value=0, key=None)
Usage
To use the Streamlit Super Slider in your Streamlit app, you simply need to import it and use the st_slider
function. The function signature is:
st_slider(min_value, max_value, default_value=0, key=None)
import streamlit as st
from streamlit_super_slider import st_slider
st.title("Streamlit Super Slider Example")
min_value = 0
max_value = 100
default_value = 50
# Use the Streamlit Super Slider component
slider_value = st_slider(min_value, max_value, default_value)
st.write(f"Selected value: {slider_value}")
Contributing
We welcome contributions to the Streamlit Super Slider project. If you'd like to report bugs, request features, or contribute to the code, please open an issue or submit a pull request on the GitHub repository.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Hashes for streamlit_super_slider-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0832f48bcd395163dbaf571b7758bb2d30eb32010105822adcd0c214c2736b91 |
|
MD5 | 6dfdc2a2fd21924fd3c286d2351dd010 |
|
BLAKE2b-256 | 2b00b824b9ae864872fc2bf3155081506c75e3f1302b1b8aa7310a115673fdeb |