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
labelargument - Adds optional
thumb_shapeargument (circle, square, pill) - Adds optional
heightargument, 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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file streamlit_vertical_slider-2.5.5.tar.gz.
File metadata
- Download URL: streamlit_vertical_slider-2.5.5.tar.gz
- Upload date:
- Size: 635.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d6854cf81a606f5c021df2037d2c49036df2d03ce5082a5227a2acca8322ca74
|
|
| MD5 |
3b76cc41067cdfd625aa56558e61e18b
|
|
| BLAKE2b-256 |
29b6c4596692276174e01899e4da3bdcef101451bc45f1a738aad54a0e60bcfe
|
File details
Details for the file streamlit_vertical_slider-2.5.5-py3-none-any.whl.
File metadata
- Download URL: streamlit_vertical_slider-2.5.5-py3-none-any.whl
- Upload date:
- Size: 1.8 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8182e861444fcd69e05c05e7109a636d459560c249f1addf78b58e525a719cb6
|
|
| MD5 |
7b69beed4da0e7da42513fe416eb8692
|
|
| BLAKE2b-256 |
4e3ff16875fa650cc6f6c1bc19ef9ccae5a1a7f434ec08747181743b48c31830
|