Streamlit component that allows you to make speed dial
Project description
streamlit-speed-dial
Streamlit component that allows you to make speed dial
Installation instructions
pip install streamlit_speed_dial
Getting started with streamlit-speed-dial
import streamlit as st
from streamlit_speed_dial import streamlit_speed_dial
st.title("streamlit speed dial component")
st.markdown("---")
col1, col2 = st.columns(2)
with col2:
button_clicked = streamlit_speed_dial(
[{"icon":"💾","name":"save"},
{"icon":"✍🏼","name":"edit"},
{"icon":"❌","name":"delete"},
{"icon":"↪","name":"share"}
],
"up")
with col1:
st.subheader(f"{button_clicked} is pressed ")
Properties
The speed dial can be customized using the following parameters:
Property | Type | Description | Default |
---|---|---|---|
actions |
list[dict] | the list of buttons to display when hovering or clicking on the speeddial button.Each element in the list is a dictionary representing an action or button. | [] |
direction |
string | The direction in which the speed-dial button expands to reveal the list of actions | up |
Returns
speed dial returns a string containing the clicked action.
Property | Type | Description | Default |
---|---|---|---|
selected |
string | name of the action | None |
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
streamlit-speed-dial-0.0.3.tar.gz
(625.6 kB
view details)
Built Distribution
File details
Details for the file streamlit-speed-dial-0.0.3.tar.gz
.
File metadata
- Download URL: streamlit-speed-dial-0.0.3.tar.gz
- Upload date:
- Size: 625.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bc8b76504c2ad7d20a974da1a7d7432d902587e49494d7e5af81fe8350ba946a |
|
MD5 | e3401134b4bce0af49a7828680558cdd |
|
BLAKE2b-256 | 196f1f272769db574ebf9197970dc16ce1fe39a5429f0ac265651aea91e25b6e |
File details
Details for the file streamlit_speed_dial-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: streamlit_speed_dial-0.0.3-py3-none-any.whl
- Upload date:
- Size: 1.9 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4caa9f78cd05dcb41689b16cb896558a01adffc67fb9465b2623c342df628f9e |
|
MD5 | 6358745a076c8cb3d37605f1ac289464 |
|
BLAKE2b-256 | a40480d3e99424c5768a7cc3e2a24ab151bc58b73b7cf3bb3d915f266cf051d6 |