Skip to main content

Streamlit component that uses the Fluent UI to create a Dropdown box.

Project description

streamlit-custom-component

Streamlit component that uses Fluent UI to create a Dropdown box.

Installation instructions

pip install streamlit-fluent-dropdown

Usage instructions

import streamlit as st

from fluent_dropdown import fluid_dropdown

keys = ["A", "B", "C", "D"]
labels = ["Item A", "Item B", "Item C", "Item D"]

selected_idx_ = fluid_dropdown(name="default", options=labels)

st.write(keys[selected_idx])

The returned value of this component is the index of the selected value.

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_fluent_dropdown-0.0.1.tar.gz (1.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

streamlit_fluent_dropdown-0.0.1-py3-none-any.whl (1.6 kB view details)

Uploaded Python 3

File details

Details for the file streamlit_fluent_dropdown-0.0.1.tar.gz.

File metadata

File hashes

Hashes for streamlit_fluent_dropdown-0.0.1.tar.gz
Algorithm Hash digest
SHA256 24932217b6d79f5eeaf0f6743376ee2243197573ef0a832a28e9297ff405b9aa
MD5 49609dd4f406134949209f7ef5d90729
BLAKE2b-256 e459b7072f3dd65fab2343d1f958f9d177a0033a0f008d7e1b4680493fa5bd77

See more details on using hashes here.

File details

Details for the file streamlit_fluent_dropdown-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for streamlit_fluent_dropdown-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d83453cf40b98608a9a33fe3e9acca87f6c44370cf03a2f1380f6f7d38910348
MD5 3b4f168e6d7c8e52bd6a6b7967b6a4ba
BLAKE2b-256 0ffa123ff0a5c62223c14abbfb390f1191a8088358eccd2083e5ad6ba2132a59

See more details on using hashes here.

Supported by

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