Преглед изворни кода

Add color prop to CircularProgress (#520)

Cheesy-Brik пре 2 година
родитељ
комит
cdf93ed004
1 измењених фајлова са 3 додато и 0 уклоњено
  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.
     # The desired valueText to use in place of the value.
     value_text: Var[str]
     value_text: Var[str]
 
 
+    # The color name of the progress bar
+    color: Var[str]
+
     @classmethod
     @classmethod
     def create(cls, *children, label=None, **props) -> Component:
     def create(cls, *children, label=None, **props) -> Component:
         """Create a circular progress component.
         """Create a circular progress component.