Sfoglia il codice sorgente

Add color prop to CircularProgress (#520)

Cheesy-Brik 2 anni fa
parent
commit
cdf93ed004
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  1. 3 0
      pynecone/components/feedback/circularprogress.py

+ 3 - 0
pynecone/components/feedback/circularprogress.py

@@ -34,6 +34,9 @@ class CircularProgress(ChakraComponent):
     # The desired valueText to use in place of the value.
     value_text: Var[str]
 
+    # The color name of the progress bar
+    color: Var[str]
+
     @classmethod
     def create(cls, *children, label=None, **props) -> Component:
         """Create a circular progress component.