Function signature[source] | |
---|---|
st.success(body, *, icon=None, width="stretch") | |
Parameters | |
body (str) | The text to display as GitHub-flavored Markdown. Syntax information can be found at: https://github.github.com/gfm. See the body parameter of st.markdown for additional, supported Markdown directives. |
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:
|
width (int or "stretch") | The desired width of the alert expressed in pixels. If this is "stretch" (default), Streamlit sets the width of the alert to match the width of the parent container. Otherwise, this must be an integer. If the specified width is greater than the width of the parent container, Streamlit sets the width of the alert to match the width of the parent container. |
Example
Still have questions?
Our forums are full of helpful information and Streamlit experts.