st.container
Insert a multi-element container.
Inserts an invisible container into your app that can be used to hold multiple elements. This allows you to, for example, insert multiple elements into your app out of order.
To add elements to the returned container, you can use "with" notation (preferred) or just call methods directly on the returned object. See examples below.
| Function signature[source] | |
|---|---|
st.container(*, border=None) | |
| Parameters | |
border (bool or None) | Whether to show a border around the container. |
Examples
Inserting elements using "with" notation:
PythonInserting elements out of order:
Python
Still have questions?
Our forums are full of helpful information and Streamlit experts.
