Skip to content

Commit

Permalink
Merge pull request #237 from arnaudmiribel/arnaudmiribel-patch-2
Browse files Browse the repository at this point in the history
Make it explicit that st.sidebar won't work in bottom extra
  • Loading branch information
arnaudmiribel authored Aug 1, 2024
2 parents 6bd3541 + f07264b commit f8c35cf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/streamlit_extras/bottom_container/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
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
Expand Down

0 comments on commit f8c35cf

Please sign in to comment.