link.pyi 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  1. """Stub file for reflex/components/base/link.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
  7. from reflex.event import EventHandler, EventSpec
  8. from reflex.ivars.base import ImmutableVar
  9. from reflex.style import Style
  10. from reflex.vars import Var
  11. class RawLink(Component):
  12. @overload
  13. @classmethod
  14. def create( # type: ignore
  15. cls,
  16. *children,
  17. href: Optional[Union[Var[str], str]] = None,
  18. rel: Optional[Union[Var[str], str]] = None,
  19. style: Optional[Style] = None,
  20. key: Optional[Any] = None,
  21. id: Optional[Any] = None,
  22. class_name: Optional[Any] = None,
  23. autofocus: Optional[bool] = None,
  24. custom_attrs: Optional[Dict[str, Union[ImmutableVar, str]]] = None,
  25. on_blur: Optional[
  26. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  27. ] = None,
  28. on_click: Optional[
  29. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  30. ] = None,
  31. on_context_menu: Optional[
  32. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  33. ] = None,
  34. on_double_click: Optional[
  35. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  36. ] = None,
  37. on_focus: Optional[
  38. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  39. ] = None,
  40. on_mount: Optional[
  41. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  42. ] = None,
  43. on_mouse_down: Optional[
  44. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  45. ] = None,
  46. on_mouse_enter: Optional[
  47. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  48. ] = None,
  49. on_mouse_leave: Optional[
  50. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  51. ] = None,
  52. on_mouse_move: Optional[
  53. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  54. ] = None,
  55. on_mouse_out: Optional[
  56. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  57. ] = None,
  58. on_mouse_over: Optional[
  59. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  60. ] = None,
  61. on_mouse_up: Optional[
  62. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  63. ] = None,
  64. on_scroll: Optional[
  65. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  66. ] = None,
  67. on_unmount: Optional[
  68. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  69. ] = None,
  70. **props,
  71. ) -> "RawLink":
  72. """Create the component.
  73. Args:
  74. *children: The children of the component.
  75. href: The href.
  76. rel: The type of link.
  77. style: The style of the component.
  78. key: A unique key for the component.
  79. id: The id for the component.
  80. class_name: The class name for the component.
  81. autofocus: Whether the component should take the focus once the page is loaded
  82. custom_attrs: custom attribute
  83. **props: The props of the component.
  84. Returns:
  85. The component.
  86. """
  87. ...
  88. class ScriptTag(Component):
  89. @overload
  90. @classmethod
  91. def create( # type: ignore
  92. cls,
  93. *children,
  94. type_: Optional[Union[Var[str], str]] = None,
  95. source: Optional[Union[Var[str], str]] = None,
  96. integrity: Optional[Union[Var[str], str]] = None,
  97. crossorigin: Optional[Union[Var[str], str]] = None,
  98. referrer_policy: Optional[Union[Var[str], str]] = None,
  99. is_async: Optional[Union[Var[bool], bool]] = None,
  100. defer: Optional[Union[Var[bool], bool]] = None,
  101. style: Optional[Style] = None,
  102. key: Optional[Any] = None,
  103. id: Optional[Any] = None,
  104. class_name: Optional[Any] = None,
  105. autofocus: Optional[bool] = None,
  106. custom_attrs: Optional[Dict[str, Union[ImmutableVar, str]]] = None,
  107. on_blur: Optional[
  108. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  109. ] = None,
  110. on_click: Optional[
  111. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  112. ] = None,
  113. on_context_menu: Optional[
  114. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  115. ] = None,
  116. on_double_click: Optional[
  117. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  118. ] = None,
  119. on_focus: Optional[
  120. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  121. ] = None,
  122. on_mount: Optional[
  123. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  124. ] = None,
  125. on_mouse_down: Optional[
  126. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  127. ] = None,
  128. on_mouse_enter: Optional[
  129. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  130. ] = None,
  131. on_mouse_leave: Optional[
  132. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  133. ] = None,
  134. on_mouse_move: Optional[
  135. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  136. ] = None,
  137. on_mouse_out: Optional[
  138. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  139. ] = None,
  140. on_mouse_over: Optional[
  141. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  142. ] = None,
  143. on_mouse_up: Optional[
  144. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  145. ] = None,
  146. on_scroll: Optional[
  147. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  148. ] = None,
  149. on_unmount: Optional[
  150. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  151. ] = None,
  152. **props,
  153. ) -> "ScriptTag":
  154. """Create the component.
  155. Args:
  156. *children: The children of the component.
  157. type_: The type of script represented.
  158. source: The URI of an external script.
  159. integrity: Metadata to verify the content of the script.
  160. crossorigin: Whether to allow cross-origin requests.
  161. referrer_policy: Indicates which referrer to send when fetching the script.
  162. is_async: Whether to asynchronously load the script.
  163. defer: Whether to defer loading the script.
  164. style: The style of the component.
  165. key: A unique key for the component.
  166. id: The id for the component.
  167. class_name: The class name for the component.
  168. autofocus: Whether the component should take the focus once the page is loaded
  169. custom_attrs: custom attribute
  170. **props: The props of the component.
  171. Returns:
  172. The component.
  173. """
  174. ...