Display text in small font.

This should be used for captions, asides, footnotes, sidenotes, and other explanatory text.

Function signature

st.caption(body)

Parameters

body (str)

The text to display.

Was this page helpful?

editSuggest edits
forum

Still have questions?

Our forums are full of helpful information and Streamlit experts.