progress.py 839 B

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