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.2.tar.gz
(625.4 kB
view details)
Built Distribution
File details
Details for the file streamlit-speed-dial-0.0.2.tar.gz
.
File metadata
- Download URL: streamlit-speed-dial-0.0.2.tar.gz
- Upload date:
- Size: 625.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3e751f60ea9e43ca29375d9d0a9f6b7d41a05e39af544bc61d6685fc11fbeaa9 |
|
MD5 | af4e4ffeaceea68863a5eb803819699b |
|
BLAKE2b-256 | a1b275e831088ba73fe80fa8fb63367295296510d03128e65ea031178bb2f0aa |
File details
Details for the file streamlit_speed_dial-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: streamlit_speed_dial-0.0.2-py3-none-any.whl
- Upload date:
- Size: 1.3 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 | daa7551aeaabc70f297e79d02016c08d33767da904cd89e5e6447c3d0c37c0d0 |
|
MD5 | c2dee1187d0f3c2acc9a649aa8f502c3 |
|
BLAKE2b-256 | 58e20f3f5f63171d2ab0c0accff860aa9e8957051574f122a03b3132b732bb2f |