spinner.py 674 B

12345678910111213141516171819202122232425
  1. """Container to stack elements with spacing."""
  2. from reflex.components.libs.chakra import ChakraComponent
  3. from reflex.vars import Var
  4. class Spinner(ChakraComponent):
  5. """The component that spins."""
  6. tag = "Spinner"
  7. # The color of the empty area in the spinner
  8. empty_color: Var[str]
  9. # For accessibility, it is important to add a fallback loading text. This text will be visible to screen readers.
  10. label: Var[str]
  11. # The speed of the spinner must be as a string and in seconds '1s'. Default is '0.45s'.
  12. speed: Var[str]
  13. # The thickness of the spinner.
  14. thickness: Var[int]
  15. # "xs" | "sm" | "md" | "lg" | "xl"
  16. size: Var[str]