Skip to content

⬇️  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.

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.
    """
    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)!
  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")
Output (beta)