reflex/reflex/components/feedback/progress.py
Masen Furer 18bddfb7e7
WiP
2023-12-14 14:53:20 -08:00

34 lines
881 B
Python

"""Container to stack elements with spacing."""
from typing import Union
from reflex.components.libs.chakra import ChakraComponent
from reflex.vars import Var
class Progress(ChakraComponent):
"""A bar to display progress."""
tag: str = "Progress"
# If true, the progress bar will show stripe
has_stripe: Var[bool]
# If true, and has_stripe is true, the stripes will be animated
is_animated: Var[bool]
# If true, the progress will be indeterminate and the value prop will be ignored
is_indeterminate: Var[bool]
# The maximum value of the progress
max_: Var[int]
# The minimum value of the progress
min_: Var[int]
# The value of the progress indicator. If undefined the progress bar will be in indeterminate state
value: Var[Union[int, float]]
# The color scheme of the progress bar.
color_scheme: Var[str]