st.divider
Display a horizontal rule.
Note
You can achieve the same effect with st.write("---") or even just "---" in your script (via magic).
| Function signature[source] | |
|---|---|
st.divider(*, width="stretch") | |
| Parameters | |
width ("stretch" or int) | The width of the divider element. This can be one of the following:
|
Example
Here's what it looks like in action when you have multiple elements in the app:

Still have questions?
Our forums are full of helpful information and Streamlit experts.
