Display an informational message.
Function signature

st.info(body, *, icon=None)

Parameters

body (str)

The info text to display.

icon (str or None)

An optional, keyword-only argument that specifies an emoji to use as the icon for the alert. Shortcodes are not allowed, please use a single character instead. E.g. "🚨", "🔥", "🤖", etc. Defaults to None, which means no icon is displayed.

Example

import streamlit as st

st.info('This is a purely informational message', icon="ℹ️")

Was this page helpful?

editSuggest edits
forum

Still have questions?

Our forums are full of helpful information and Streamlit experts.