I am working on a interface design that includes st.date_input(). I really only want the user to select from the calendar “popup”, I might be satisfied if there a way adjust the size of the input box. Currently that input box stretches the entire width of the page.
Hi @dbaOnTap , why not make 2 columns with st.columns. Make the first column a small column just enough for your st.date_input to display correctly, and the next larger column could be a dummy column containing nothing?
Cheers
Thanks! That approach, with a little playing around, got me what I was looking for. The calendar date input box has been sized to only be as wide as the date.
dt, padding = st.columns([2,35])
dt.date_input(“”)
padding.write(“”)
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.