How to make upload and download buttons in columns layout style?

I just curious how we can make download button and upload button in column style?

Hi @nur_rochman_Muhammad :wave:

Could you elaborate on what you mean by column style? Do you have a sketch or any visual representation of your idea to share?

using this function

to put this two functions side by side

Would this be a solution? Or are you looking for some thing else?

left, right = st.columns(2)
left.file_uploader("Upload")
right.download_button("Download!", """This is some text""")

If you want to cheat a little bit on alignment, you can do the following:

left, right = st.columns(2)
left.file_uploader("")
right.write("")
right.write("")
right.download_button("Download!", """This is some text""")

Hope that helps,

2 Likes

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.