1
0

progress.py 875 B

123456789101112131415161718192021222324252627282930313233
  1. """Container to stack elements with spacing."""
  2. from typing import Union
  3. from reflex.components.libs.chakra import ChakraComponent
  4. from reflex.vars import Var
  5. class Progress(ChakraComponent):
  6. """A bar to display progress."""
  7. tag = "Progress"
  8. # If true, the progress bar will show stripe
  9. has_stripe: Var[bool]
  10. # If true, and hasStripe is true, the stripes will be animated
  11. is_animated: Var[bool]
  12. # If true, the progress will be indeterminate and the value prop will be ignored
  13. is_indeterminate: Var[bool]
  14. # The maximum value of the progress
  15. max_: Var[int]
  16. # The minimum value of the progress
  17. min_: Var[int]
  18. # The value of the progress indicator. If undefined the progress bar will be in indeterminate state
  19. value: Var[Union[int, float]]
  20. # The color scheme of the progress bar.
  21. color_scheme: Var[str]