Creates a customizable vertical slider
Project description
streamlit-vertical-slider
Creates a constinuous vertical slider with color customizations.
Update ⚠️
Version 2.5
- Fixed issue where default value was not been sent back to Streamlit
- Refactor label into a tooltip reducing the width of the widget by 30%
- Adjusted default size of track, rail and thumb to match Streamlit's native slider.
- Slider Color can now be a tuple in order to create a gradient.
- Matched the label style to native Streamlit slider label.
Version 2.0
Changes:
- Adds optional
label
argument - Adds optional
thumb_shape
argument (circle, square, pill) - Adds optional
height
argument, defaults to 200 - Upgrade to Material-UI v5
- Centralized labels and values
- Support for Dark Mode
Please update by:
pip install --upgrade streamlit-vertical-slider
Installation
pip install streamlit-vertical-slider
Usage
import streamlit as st
from streamlit_vertical_slider import vertical_slider
vertical_slider(
label = "Your widget label", #Optional
key = "vert_01" ,
height = 300, #Optional - Defaults to 300
thumb_shape = "square", #Optional - Defaults to "circle"
step = 1, #Optional - Defaults to 1
default_value=5 ,#Optional - Defaults to 0
min_value= 0, # Defaults to 0
max_value= 10, # Defaults to 10
track_color = "blue", #Optional - Defaults to Streamlit Red
slider_color = ('red','blue'), #Optional
thumb_color= "orange", #Optional - Defaults to Streamlit Red
value_always_visible = True ,#Optional - Defaults to False
)
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 Distribution
Built Distribution
Close
Hashes for streamlit_vertical_slider-2.5.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d6854cf81a606f5c021df2037d2c49036df2d03ce5082a5227a2acca8322ca74 |
|
MD5 | 3b76cc41067cdfd625aa56558e61e18b |
|
BLAKE2b-256 | 29b6c4596692276174e01899e4da3bdcef101451bc45f1a738aad54a0e60bcfe |
Close
Hashes for streamlit_vertical_slider-2.5.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8182e861444fcd69e05c05e7109a636d459560c249f1addf78b58e525a719cb6 |
|
MD5 | 7b69beed4da0e7da42513fe416eb8692 |
|
BLAKE2b-256 | 4e3ff16875fa650cc6f6c1bc19ef9ccae5a1a7f434ec08747181743b48c31830 |