Display progress and status
Streamlit provides a few methods that allow you to add animation to your apps. These animations include progress bars, status messages (like warnings), and celebratory balloons.

Progress bar
Display a progress bar.
for i in range(101):
st.progress(i)
do_something_slow()

Spinner
Temporarily displays a message while executing a block of code.
with st.spinner("Please wait..."):
do_something_slow()

Balloons
Display celebratory balloons!
do_something()
# Celebrate when all done!
st.balloons()

Snowflakes
Display celebratory snowflakes!
do_something()
# Celebrate when all done!
st.snow()

Error box
Display error message.
st.error("We encountered an error")

Warning box
Display warning message.
st.warning("Unable to fetch image. Skipping...")

Info box
Display an informational message.
st.info("Dataset is updated every day at midnight.")

Success box
Display a success message.
st.success("Match found!")

Exception output
Display an exception.
e = RuntimeError("This is an exception of type RuntimeError")
st.exception(e)
Third-party components
These are featured components created by our lovely community. If you don't see what you're looking for, check out our Components Hub app and Streamlit Extras for more examples and inspiration!