Two buttons on the same line

Is there any way to put two buttons together on the same line? Currently they will appear after each other. Thanks!

Hi @joewandy, welcome to the forums :slight_smile:

It’s currently not possible, team is thinking about horizontal/grid layout it on this post Customizable Layout for Streamlit if you want to share, and it’s pretty high in the roadmap.

If you feel Javascript adventurous though, custom components are being developed right now and when the feature drops in Streamlit you could also build your own custom component with two aligned buttons :wink: .

Regards,
Fanilo

2 Likes