Extra Components Library

I’ve started collecting together some of the extra components I use into one app that can then be used as a dependency.

At the moment, it only has two components (MessagePill and IndeterminateProgressBar) but, I’ll add to it as I find more stuff (and round tuits)

It’s also on github, so Pull Requests are welcome!

Here’s the app running its demo page to show the two components in action:

Clone link:
https://anvil.works/build#clone:C6ZZPAPN4YYF5NVJ=UGGCKFPRVZ7ELJH6RRZTHV6Y

Github repo:

5 Likes

awesome - you don’t even need the script tags in native library anymore
just access document from python…

from anvil.js.window import document

...
    @indicator_colour.setter
    def indicator_colour(self, value):
        self._indicator_colour = value
        document.body.style.setProperty('--indicator-colour', value)

2 Likes

Ah yes! I’d forgotten about that! (the pitfalls of copying/pasting stuff from a while back).

done.

Now with a determinate progress bar: