I did not like the st.spinner, due to its always being depended on the position of the div.
So i’m working on a new component which will make a better version (IMHO) of that.
the notification inherits the theme color.
the notification is sticky on top, and moves with the navbar.
currently i’ts super raw.
Link to the sample:
This is something we were discussing just the other day as a potential addition to the official API
That’s wonderful! I’m going to add this to our components tracker under the “under development” section!
Woah! That’s a great component @BugzTheBunny!
Very nice! I do like this more than the spinner, will definitely start using this. Also, not sure if it was intentional, when I run this with a light theme or anything not using a black background colour, the notification background seems to be using a fixed colour.
in the components.py file
I added the bc variable in from your style dict and everything worked as expected.
Keep up the great work!
Indeed, I left some things there like that for my needes, but i made it as much as modular as i could for that point
In my personal code i’ve made it a bit less flex and more depended, in this version i shared, its more modular, so i didin’t notice all of the details when refactoring it
Thanks for noting it!