A modal dialog is an overlay that temporarily blocks interaction with the underlying interface until the user dismisses it. Use it to keep advanced tasks, such as dashboard drill-downs, separate from the main view while keeping them easy to access. section 7.5.1
In Streamlit, st.dialog is a decorator rather than a container widget. Decorating a function renders that function’s content in a popup. The function can receive data, set a small or large width, and combine tabs or other widgets inside the dialog. section 7.5.1
Dashboard drill-down dialog
Define a Drilldown dialog that accepts main_df and compare_df, displays them in Main and Compare tabs, and invokes it when the user presses a Drilldown button. The dialog presents the raw filtered data without crowding the primary dashboard.
