If they’re asking for in-browser toasts, I believe we have that planned for this quarter.
But if they want desktop notifications, that’s not scheduled yet.
But a component could easily do it!
Just wanted to share some potential features for notification toasts, which I know are somewhere down the roadmap. Just some thoughts in case they are helpful.
Adding a “close” or “X” button so users can dismiss the notification after reading it.
Setting height, width, and position (center of screen, top-left, top-right, bottom-left, bottom-right) of the notification toast.
Adding to the body of the notification toast not only text, but also a url (e.g., to link to a privacy policy document) or even injecting some html.
Choosing if the app in the background is greyed out / disabled or not, when the notification toast shows up.
Hi @marduk ,
Any code snippet on setting the height width and position for the pop up would be really helpfu;.
I am unable to find the documentation of ToastNotifier().
Notification toasts are not available yet in Streamlit as a native component; in my previous message I was just sharing some ideas for the dev team to consider.
If you don’t want to wait for the Streamlit-native notification toasts, @Shawn_Pereira kindly pointed us to a custom component someone built: