How to put two buttons next to each other within a column?

I have a streamlit app with three columns, I want to add two buttons inside one of the columns, however it is impossible to nest columns into other columns. Are there any workarounds available?

Hi Philip
I believe currently streamlit cannot support columns in columns


Why not use 3 columns instead of 2?

Thanks for your reply. The content in the columns is dynamic, only part of the time the buttons are displayed, so adding a new column would take up unecessary space and that kind of beats the purpose of putting the two buttons next to each other.

Try using this component within your column and see if it solves your problem.

Cheers

1 Like

Awesome, works perfectly!