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")
File Uploader
Display a file uploader widget.
python
data = st.file_uploader("Upload a CSV")
Camera input
Display a widget that allows users to upload images directly a camera.
python
image = st.camera_input("Take a picture")
