Multiselect height

Hy everyone,

I was wondering if it was possible to limit the height of the multiselect and make it scrollable? Currently I get every value on display, and it makes the multiselect box too big for my app (as it is in the sidebar, it takes half of the page)!

Thanks in advance

ps: here’s my code, even tough I am not sure it will be useful

liste_partis = candidats['Courant'].unique()
partis = st.sidebar.multiselect('Choix des courants politiques',liste_partis,liste_partis)

Yes I am facing almost same issue, only difference is i am not using it in the sidebar, so I need the multiselect to auto-hide and when the user select on the muliselect, only then he/she can see the options

I also have the same question. I have the multiselect component in the sidebar and I have way too many options so the box ends up being huge…

1 Like

same issue here, does someone find the solution