Streamlit fixed / sticky container

I realized that quite often I need a part of my app to be always visible for user. I created a simple wrapper for st.container that uses some CSS tricks. It supports both fixed and sticky options, custom margins and it switch its color when the user change the theme.

I’m leaving the link on Github Gists in case of future updates

Let me know if it’s not acceptable and it’s better to send the code right here :raised_hands:t3:

output

4 Likes

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