Spaces:
Sleeping
Sleeping
File size: 580 Bytes
746d2f1 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
---
title: st.divider
slug: /develop/api-reference/text/st.divider
description: st.divider displays a horizontal rule in your app.
---
<Autofunction function="streamlit.divider" />
Here's what it looks like in action when you have multiple elements in the app:
```python
import streamlit as st
st.write("This is some text.")
st.slider("This is a slider", 0, 100, (25, 75))
st.divider() # π Draws a horizontal rule
st.write("This text is between the horizontal rules.")
st.divider() # π Another horizontal rule
```
<Image src="/images/api/st.divider.png" clean />
|