⬇️ Bottom Container
Submitted by Lukas Masuch
Summary
A multi-element container that sticks to the bottom of the app.
Functions
bottom
Insert a multi-element container that sticks to the bottom of the app.
Note that this can only be in the main body of the app, and not in
other parts e.g. st.sidebar
Source code in src/streamlit_extras/bottom_container/__init__.py
| @extra
def bottom() -> DeltaGenerator:
"""
Insert a multi-element container that sticks to the bottom of the app.
Note that this can only be in the main body of the app, and not in
other parts e.g. st.sidebar
"""
if hasattr(st, "_bottom"):
return st._bottom
else:
raise Exception(
"The bottom container is not supported in this Streamlit version."
)
|
Import:
from streamlit_extras.bottom_container import bottom # (1)!
- You should add this to the top of your .py file

Examples
example
def example():
st.write("This is the main container")
with bottom():
st.write("This is the bottom container")
st.text_input("This is a text input in the bottom container")