spinner.pyi 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. """Stub file for reflex/components/radix/themes/components/spinner.py"""
  2. # ------------------- DO NOT EDIT ----------------------
  3. # This file was generated by `reflex/utils/pyi_generator.py`!
  4. # ------------------------------------------------------
  5. from typing import Any, Dict, Literal, Optional, Union, overload
  6. from reflex.components.core.breakpoints import Breakpoints
  7. from reflex.event import BASE_STATE, EventType
  8. from reflex.style import Style
  9. from reflex.vars.base import Var
  10. from ..base import RadixLoadingProp, RadixThemesComponent
  11. LiteralSpinnerSize = Literal["1", "2", "3"]
  12. class Spinner(RadixLoadingProp, RadixThemesComponent):
  13. @overload
  14. @classmethod
  15. def create( # type: ignore
  16. cls,
  17. *children,
  18. size: Optional[
  19. Union[
  20. Breakpoints[str, Literal["1", "2", "3"]],
  21. Literal["1", "2", "3"],
  22. Var[
  23. Union[
  24. Breakpoints[str, Literal["1", "2", "3"]], Literal["1", "2", "3"]
  25. ]
  26. ],
  27. ]
  28. ] = None,
  29. loading: Optional[Union[Var[bool], bool]] = None,
  30. style: Optional[Style] = None,
  31. key: Optional[Any] = None,
  32. id: Optional[Any] = None,
  33. class_name: Optional[Any] = None,
  34. autofocus: Optional[bool] = None,
  35. custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
  36. on_blur: Optional[EventType[[], BASE_STATE]] = None,
  37. on_click: Optional[EventType[[], BASE_STATE]] = None,
  38. on_context_menu: Optional[EventType[[], BASE_STATE]] = None,
  39. on_double_click: Optional[EventType[[], BASE_STATE]] = None,
  40. on_focus: Optional[EventType[[], BASE_STATE]] = None,
  41. on_mount: Optional[EventType[[], BASE_STATE]] = None,
  42. on_mouse_down: Optional[EventType[[], BASE_STATE]] = None,
  43. on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None,
  44. on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None,
  45. on_mouse_move: Optional[EventType[[], BASE_STATE]] = None,
  46. on_mouse_out: Optional[EventType[[], BASE_STATE]] = None,
  47. on_mouse_over: Optional[EventType[[], BASE_STATE]] = None,
  48. on_mouse_up: Optional[EventType[[], BASE_STATE]] = None,
  49. on_scroll: Optional[EventType[[], BASE_STATE]] = None,
  50. on_unmount: Optional[EventType[[], BASE_STATE]] = None,
  51. **props,
  52. ) -> "Spinner":
  53. """Create a new component instance.
  54. Will prepend "RadixThemes" to the component tag to avoid conflicts with
  55. other UI libraries for common names, like Text and Button.
  56. Args:
  57. *children: Child components.
  58. size: The size of the spinner.
  59. loading: If set, show an rx.spinner instead of the component children.
  60. style: The style of the component.
  61. key: A unique key for the component.
  62. id: The id for the component.
  63. class_name: The class name for the component.
  64. autofocus: Whether the component should take the focus once the page is loaded
  65. custom_attrs: custom attribute
  66. **props: Component properties.
  67. Returns:
  68. A new component instance.
  69. """
  70. ...
  71. spinner = Spinner.create