circularprogress.py 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. """Container to stack elements with spacing."""
  2. from pynecone.components.libs.chakra import ChakraComponent
  3. from pynecone.var import Var
  4. class CircularProgress(ChakraComponent):
  5. """The CircularProgress component is used to indicate the progress for determinate and indeterminate processes."""
  6. tag = "CircularProgress"
  7. # If true, the cap of the progress indicator will be rounded.
  8. cap_is_round: Var[bool]
  9. # If true, the progress will be indeterminate and the value prop will be ignored
  10. is_indeterminate: Var[bool]
  11. # Maximum value defining 100% progress made (must be higher than 'min')
  12. max_: Var[int]
  13. # Minimum value defining 'no progress' (must be lower than 'max')
  14. min_: Var[int]
  15. # This defines the stroke width of the svg circle.
  16. thickness: Var[int]
  17. # The color name of the progress track. Use a color key in the theme object
  18. track_color: Var[str]
  19. # Current progress (must be between min/max).
  20. value: Var[int]
  21. # The desired valueText to use in place of the value.
  22. value_text: Var[str]
  23. class CircularProgressLabel(ChakraComponent):
  24. """Label of CircularProcess."""
  25. tag = "CircularProgressLabel"