I want to make a multiple-choice user input (checkboxes). But I want to select a maximum of 3 options out of 4 options.
Drop files here
or click to upload
import streamlit as st
st.title("")
options = st.multiselect(
"Select your options (max 3)",
options=["Option 1", "Option 2", "Option 3", "Option 4"],
max_selections=3,
)
st.write("You selected:", options)
Hi! I can help you with any questions about Streamlit and Python. What would you like to know?