Write fixed-width and preformatted text.
Function signature

st.text(body)

Parameters

body (str)

The string to display.

Example

import streamlit as st

st.text('This is some text.')

Was this page helpful?

editSuggest edits
forum

Still have questions?

Our forums are full of helpful information and Streamlit experts.