Display a multiselect widget. The multiselect widget starts as empty.
python
choices = st.multiselect("Buy", ["milk", "apples", "potatoes"])
Slider
Display a slider widget.
python
number = st.slider("Pick a number", 0, 100)
Select-slider
Display a slider widget to select items from a list.
python
size = st.select_slider("Pick a size", ["S", "M", "L"])
Text input
Display a single-line text input widget.
python
name = st.text_input("First name")
Number input
Display a numeric input widget.
python
choice = st.number_input("Pick a number", 0, 10)
Text-area
Display a multi-line text input widget.
python
text = st.text_area("Text to translate")
Date input
Display a date input widget.
python
date = st.date_input("Your birthday")
Time input
Display a time input widget.
python
time = st.time_input("Meeting time")
