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 fluent_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.3.tar.gz (794.6 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.3-py3-none-any.whl (801.1 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for streamlit_fluent_dropdown-0.0.3.tar.gz
Algorithm Hash digest
SHA256 e5a8194a00d379d01e0d9ebec85a9a2cb1966bd71ddcc833fd9d67a3d481c5d0
MD5 4c34cd80a037e2a1cbfcb856b8998f97
BLAKE2b-256 c3b6176a6e56438ee19bca799cfd191f32475d1c8da817d422fe7652c4b65e77

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for streamlit_fluent_dropdown-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 32becc0dcf887f345a638e3fc04bdb1116a53b0fc3060aefabe04f67509df432
MD5 584e2b2ad5dbb2e8a9f2267e1217c5d7
BLAKE2b-256 9592a0f905d8942938dfc1286d745f11ea1eebcfb9fcb88efddf549a99f3d0ea

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