progress.py 999 B

1234567891011121314151617181920212223242526272829303132
  1. """Container to stack elements with spacing."""
  2. from typing import Optional, Union
  3. from reflex.components.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: Optional[Var[bool]] = None
  10. # If true, and has_stripe is true, the stripes will be animated
  11. is_animated: Optional[Var[bool]] = None
  12. # If true, the progress will be indeterminate and the value prop will be ignored
  13. is_indeterminate: Optional[Var[bool]] = None
  14. # The maximum value of the progress
  15. max_: Optional[Var[int]] = None
  16. # The minimum value of the progress
  17. min_: Optional[Var[int]] = None
  18. # The value of the progress indicator. If undefined the progress bar will be in indeterminate state
  19. value: Optional[Var[Union[int, float]]] = None
  20. # The color scheme of the progress bar.
  21. color_scheme: Optional[Var[str]] = None