head.pyi 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. """Stub file for reflex/components/base/head.py"""
  2. # ------------------- DO NOT EDIT ----------------------
  3. # This file was generated by `reflex/utils/pyi_generator.py`!
  4. # ------------------------------------------------------
  5. from typing import Any, Callable, Dict, Optional, Union, overload
  6. from reflex.components.component import Component, MemoizationLeaf
  7. from reflex.event import EventHandler, EventSpec
  8. from reflex.style import Style
  9. from reflex.vars import Var
  10. class NextHeadLib(Component):
  11. @overload
  12. @classmethod
  13. def create( # type: ignore
  14. cls,
  15. *children,
  16. style: Optional[Style] = None,
  17. key: Optional[Any] = None,
  18. id: Optional[Any] = None,
  19. class_name: Optional[Any] = None,
  20. autofocus: Optional[bool] = None,
  21. custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
  22. on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  23. on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  24. on_context_menu: Optional[
  25. Union[EventHandler, EventSpec, list, Callable, Var]
  26. ] = None,
  27. on_double_click: Optional[
  28. Union[EventHandler, EventSpec, list, Callable, Var]
  29. ] = None,
  30. on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  31. on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  32. on_mouse_down: Optional[
  33. Union[EventHandler, EventSpec, list, Callable, Var]
  34. ] = None,
  35. on_mouse_enter: Optional[
  36. Union[EventHandler, EventSpec, list, Callable, Var]
  37. ] = None,
  38. on_mouse_leave: Optional[
  39. Union[EventHandler, EventSpec, list, Callable, Var]
  40. ] = None,
  41. on_mouse_move: Optional[
  42. Union[EventHandler, EventSpec, list, Callable, Var]
  43. ] = None,
  44. on_mouse_out: Optional[
  45. Union[EventHandler, EventSpec, list, Callable, Var]
  46. ] = None,
  47. on_mouse_over: Optional[
  48. Union[EventHandler, EventSpec, list, Callable, Var]
  49. ] = None,
  50. on_mouse_up: Optional[
  51. Union[EventHandler, EventSpec, list, Callable, Var]
  52. ] = None,
  53. on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  54. on_unmount: Optional[
  55. Union[EventHandler, EventSpec, list, Callable, Var]
  56. ] = None,
  57. **props,
  58. ) -> "NextHeadLib":
  59. """Create the component.
  60. Args:
  61. *children: The children of the component.
  62. style: The style of the component.
  63. key: A unique key for the component.
  64. id: The id for the component.
  65. class_name: The class name for the component.
  66. autofocus: Whether the component should take the focus once the page is loaded
  67. custom_attrs: custom attribute
  68. **props: The props of the component.
  69. Returns:
  70. The component.
  71. """
  72. ...
  73. class Head(NextHeadLib, MemoizationLeaf):
  74. @overload
  75. @classmethod
  76. def create( # type: ignore
  77. cls,
  78. *children,
  79. style: Optional[Style] = None,
  80. key: Optional[Any] = None,
  81. id: Optional[Any] = None,
  82. class_name: Optional[Any] = None,
  83. autofocus: Optional[bool] = None,
  84. custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
  85. on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  86. on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  87. on_context_menu: Optional[
  88. Union[EventHandler, EventSpec, list, Callable, Var]
  89. ] = None,
  90. on_double_click: Optional[
  91. Union[EventHandler, EventSpec, list, Callable, Var]
  92. ] = None,
  93. on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  94. on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  95. on_mouse_down: Optional[
  96. Union[EventHandler, EventSpec, list, Callable, Var]
  97. ] = None,
  98. on_mouse_enter: Optional[
  99. Union[EventHandler, EventSpec, list, Callable, Var]
  100. ] = None,
  101. on_mouse_leave: Optional[
  102. Union[EventHandler, EventSpec, list, Callable, Var]
  103. ] = None,
  104. on_mouse_move: Optional[
  105. Union[EventHandler, EventSpec, list, Callable, Var]
  106. ] = None,
  107. on_mouse_out: Optional[
  108. Union[EventHandler, EventSpec, list, Callable, Var]
  109. ] = None,
  110. on_mouse_over: Optional[
  111. Union[EventHandler, EventSpec, list, Callable, Var]
  112. ] = None,
  113. on_mouse_up: Optional[
  114. Union[EventHandler, EventSpec, list, Callable, Var]
  115. ] = None,
  116. on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  117. on_unmount: Optional[
  118. Union[EventHandler, EventSpec, list, Callable, Var]
  119. ] = None,
  120. **props,
  121. ) -> "Head":
  122. """Create a new memoization leaf component.
  123. Args:
  124. *children: The children of the component.
  125. style: The style of the component.
  126. key: A unique key for the component.
  127. id: The id for the component.
  128. class_name: The class name for the component.
  129. autofocus: Whether the component should take the focus once the page is loaded
  130. custom_attrs: custom attribute
  131. **props: The props of the component.
  132. Returns:
  133. The memoization leaf
  134. """
  135. ...
  136. head = Head.create