Skip to main content

Streamlit component that allows you to do handle a list of clickable items

Project description

streamlit-list-widget

Open in Streamlit

Streamlit component that allows you to create a list of clickable items.

Installation instructions

pip install streamlit-list-widget

Usage instructions

import streamlit as st

from streamlit_list_widget import streamlit_list_widget

images = {
    "Golden Retriever": "https://www.zooplus.it/magazine/wp-content/uploads/2017/05/fotolia_66749097.jpg",
    "Labrador": "https://www.tuttogreen.it/wp-content/uploads/2019/03/shutterstock_1212827962.jpg",
    "Pomerania": "https://www.purina.it/sites/default/files/2021-02/BREED%20Hero_0095_pomeranian.jpg",
    "Alberto": "https://m.media-amazon.com/images/I/61k4ead-zGL._AC_UF350,350_QL80_.jpg",
}

with st.sidebar:
    selected = streamlit_list_widget(items=list(images.keys()), title="Dogs")

if selected:
    st.title(selected)
    st.image(images[selected], caption=selected)

Todo

  • Read release notes from file

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-list-widget-0.1.10.tar.gz (407.4 kB view details)

Uploaded Source

Built Distribution

streamlit_list_widget-0.1.10-py3-none-any.whl (410.0 kB view details)

Uploaded Python 3

File details

Details for the file streamlit-list-widget-0.1.10.tar.gz.

File metadata

File hashes

Hashes for streamlit-list-widget-0.1.10.tar.gz
Algorithm Hash digest
SHA256 042f7ea2b8236345a01ff91a5f0c1b9956c120aacc4dd6a81f31141991a6bafc
MD5 526c9b0f81b018e846aadab01c055e46
BLAKE2b-256 fd8001769ff0ad30127f25d4b84e600030b1fde5321ed166f4ed314b7fced2a8

See more details on using hashes here.

File details

Details for the file streamlit_list_widget-0.1.10-py3-none-any.whl.

File metadata

File hashes

Hashes for streamlit_list_widget-0.1.10-py3-none-any.whl
Algorithm Hash digest
SHA256 20fc2b8e88d41f33cc749b56194c6a5ad528d1f40dc0d4648609dd20d3da1fa0
MD5 312f5e915629f6d486712941d612696a
BLAKE2b-256 0afaf59861ea84dad9d6ed667e40e97abd29224fc38e83eba1fa0eda023e30fe

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