Search⌘ K
AI Features

Selection Widgets with Streamlit

Explore how to implement various Streamlit widgets that allow users to select single or multiple items, including numerical values. This lesson helps you understand and apply selection widgets like radio buttons, selectboxes, multiselects, and sliders to create interactive web apps with clear user instructions.

Selection of single item

If we want users to select just one item out of several options, Streamlit offers the following three widgets:

  • st.radio()
  • st.selectbox()
  • st.select_slider()

We need to provide both a label that lets the user know what ...