eagle0504's picture
app updated
746d2f1

A newer version of the Streamlit SDK is available: 1.48.1

Upgrade
metadata
title: st.divider
slug: /develop/api-reference/text/st.divider
description: st.divider displays a horizontal rule in your app.

Here's what it looks like in action when you have multiple elements in the app:

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