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)

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.5.tar.gz (407.3 kB view details)

Uploaded Source

Built Distribution

streamlit_list_widget-0.1.5-py3-none-any.whl (409.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: streamlit-list-widget-0.1.5.tar.gz
  • Upload date:
  • Size: 407.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for streamlit-list-widget-0.1.5.tar.gz
Algorithm Hash digest
SHA256 eadee485a6762f269d37f6c0c5f9043d0501337afd0df21cfc12aec0e2e7230c
MD5 73f33b4fa0944ee080b2aaec55675458
BLAKE2b-256 8a35edcf62a5d3a4c563be953213ea1b60a4f4639b9816cc8ab73e3e29ef37e3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for streamlit_list_widget-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 99ba7b687043a4214e1b82d17bdd48f4f34e07a8de1354695107e95053c9c223
MD5 5512d495d4a7a65bf25b83c3847ad15a
BLAKE2b-256 4614566b8234a24f752e1194d1c394cec11b32bec1d11fdb17413c1f81f1437a

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