Browse Source

Add color prop to CircularProgress (#520)

Cheesy-Brik 2 năm trước cách đây
mục cha
commit
cdf93ed004
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  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.