reflex/reflex/components/chakra/feedback/progress.py
Alek Petuskey 00a8054850
Individually Import Chakra Packages (#2405)
* Base lib switch

Co-authored-by: Alek Petuskey <alekpetuskey@aleks-mbp.lan>
2024-01-25 10:22:46 -08:00

36 lines
914 B
Python

"""Container to stack elements with spacing."""
from typing import Union
from reflex.components.chakra import ChakraComponent
from reflex.vars import Var
class Progress(ChakraComponent):
"""A bar to display progress."""
library = "@chakra-ui/progress@2.2.0"
tag = "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]