Overview

Streamlit 1.35, released on June 10, 2024, introduces st.dialog for creating modal dialogs and improves the custom theming system.

Main Features

st.dialog

The @st.dialog decorator creates reusable modal dialog boxes, simplifying user interactions.

python
import streamlit as st

@st.dialog('Confirm')
def confirm_deletion():
    st.write('Are you sure you want to delete?')
    if st.button('Yes'):
        st.session_state['deleted'] = True
        st.rerun()

if st.button('Delete'):
    confirm_deletion()

Custom theming

The theming system is enhanced with more customization options for colors and fonts.

Sources