|
@@ -23,7 +23,7 @@ class CircularProgress(ChakraComponent):
|
|
min_: Var[int]
|
|
min_: Var[int]
|
|
|
|
|
|
# This defines the stroke width of the svg circle.
|
|
# This defines the stroke width of the svg circle.
|
|
- thickness: Var[int]
|
|
|
|
|
|
+ thickness: Var[str]
|
|
|
|
|
|
# The color name of the progress track. Use a color key in the theme object
|
|
# The color name of the progress track. Use a color key in the theme object
|
|
track_color: Var[str]
|
|
track_color: Var[str]
|
|
@@ -37,6 +37,9 @@ class CircularProgress(ChakraComponent):
|
|
# The color name of the progress bar
|
|
# The color name of the progress bar
|
|
color: Var[str]
|
|
color: Var[str]
|
|
|
|
|
|
|
|
+ # The size of the circular progress
|
|
|
|
+ size: 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.
|
|
@@ -52,7 +55,7 @@ class CircularProgress(ChakraComponent):
|
|
if len(children) == 0:
|
|
if len(children) == 0:
|
|
children = []
|
|
children = []
|
|
|
|
|
|
- if label:
|
|
|
|
|
|
+ if label is not None:
|
|
children.append(CircularProgressLabel.create(label))
|
|
children.append(CircularProgressLabel.create(label))
|
|
return super().create(*children, **props)
|
|
return super().create(*children, **props)
|
|
|
|
|