Function signature[source] | |
---|---|
st.success(body, *, icon=None) | |
Parameters | |
body (str) | The success text to display. |
icon (str, None) | An optional emoji or icon to display next to the alert. If icon is None (default), no icon is displayed. If icon is a string, the following options are valid:
|
Example
import streamlit as st st.success('This is a success message!', icon="✅")
Still have questions?
Our forums are full of helpful information and Streamlit experts.