reflex/pynecone/components/feedback/spinner.py
2022-11-18 12:44:06 -08:00

26 lines
677 B
Python

"""Container to stack elements with spacing."""
from pynecone.components.libs.chakra import ChakraComponent
from pynecone.var import Var
class Spinner(ChakraComponent):
"""The component that spins."""
tag = "Spinner"
# The color of the empty area in the spinner
empty_color: Var[str]
# For accessibility, it is important to add a fallback loading text. This text will be visible to screen readers.
label: Var[str]
# The speed of the spinner must be as a string and in seconds '1s'. Default is '0.45s'.
speed: Var[str]
# The thickness of the spinner.
thickness: Var[int]
# "xs" | "sm" | "md" | "lg" | "xl"
size: Var[str]