Skip to main content

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

gif_example

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


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)

Uploaded Source

Built Distribution

streamlit_speed_dial-0.0.2-py3-none-any.whl (1.3 MB view details)

Uploaded Python 3

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

Hashes for streamlit-speed-dial-0.0.2.tar.gz
Algorithm Hash digest
SHA256 3e751f60ea9e43ca29375d9d0a9f6b7d41a05e39af544bc61d6685fc11fbeaa9
MD5 af4e4ffeaceea68863a5eb803819699b
BLAKE2b-256 a1b275e831088ba73fe80fa8fb63367295296510d03128e65ea031178bb2f0aa

See more details on using hashes here.

File details

Details for the file streamlit_speed_dial-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for streamlit_speed_dial-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 daa7551aeaabc70f297e79d02016c08d33767da904cd89e5e6447c3d0c37c0d0
MD5 c2dee1187d0f3c2acc9a649aa8f502c3
BLAKE2b-256 58e20f3f5f63171d2ab0c0accff860aa9e8957051574f122a03b3132b732bb2f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page