-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathlayout_divider.qmd
More file actions
47 lines (27 loc) · 979 Bytes
/
layout_divider.qmd
File metadata and controls
47 lines (27 loc) · 979 Bytes
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
---
title: "Page Dividers"
filters:
- whitphx/stlite
---
The divider is a simple function that puts a horizontal line across the width of the page.
This can make it easier to indicate different sections of the page that should be looked at together.
```{python}
import streamlit as st
st.title("This is a title")
st.write("Here's a first line of text")
st.divider()
st.write("Here's some more text")
st.divider()
st.write("Here's the final text")
```
```{stlite-python}
import streamlit as st
st.title("This is a title")
st.write("Here's a first line of text")
st.divider()
st.write("Here's some more text")
st.write("And an extra line - you can put as many things as you want between each divider")
st.divider()
st.write("Here's the final text - though you don't have to have anything after the final divider if you don't want to (though arguably it's not necessary in that case!)")
```
There are no additional parameters you can pass into `st.divider()`.