base.pyi 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. """Stub file for reflex/components/radix/primitives/base.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 RadixPrimitiveComponent(Component):
  12. @overload
  13. @classmethod
  14. def create( # type: ignore
  15. cls,
  16. *children,
  17. as_child: Optional[Union[Var[bool], bool]] = None,
  18. style: Optional[Style] = None,
  19. key: Optional[Any] = None,
  20. id: Optional[Any] = None,
  21. class_name: Optional[Any] = None,
  22. autofocus: Optional[bool] = None,
  23. custom_attrs: Optional[Dict[str, Union[ImmutableVar, str]]] = None,
  24. on_blur: Optional[
  25. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  26. ] = None,
  27. on_click: Optional[
  28. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  29. ] = None,
  30. on_context_menu: Optional[
  31. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  32. ] = None,
  33. on_double_click: Optional[
  34. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  35. ] = None,
  36. on_focus: Optional[
  37. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  38. ] = None,
  39. on_mount: Optional[
  40. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  41. ] = None,
  42. on_mouse_down: Optional[
  43. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  44. ] = None,
  45. on_mouse_enter: Optional[
  46. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  47. ] = None,
  48. on_mouse_leave: Optional[
  49. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  50. ] = None,
  51. on_mouse_move: Optional[
  52. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  53. ] = None,
  54. on_mouse_out: Optional[
  55. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  56. ] = None,
  57. on_mouse_over: Optional[
  58. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  59. ] = None,
  60. on_mouse_up: Optional[
  61. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  62. ] = None,
  63. on_scroll: Optional[
  64. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  65. ] = None,
  66. on_unmount: Optional[
  67. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  68. ] = None,
  69. **props,
  70. ) -> "RadixPrimitiveComponent":
  71. """Create the component.
  72. Args:
  73. *children: The children of the component.
  74. as_child: Change the default rendered element for the one passed as a child.
  75. style: The style of the component.
  76. key: A unique key for the component.
  77. id: The id for the component.
  78. class_name: The class name for the component.
  79. autofocus: Whether the component should take the focus once the page is loaded
  80. custom_attrs: custom attribute
  81. **props: The props of the component.
  82. Returns:
  83. The component.
  84. """
  85. ...
  86. class RadixPrimitiveComponentWithClassName(RadixPrimitiveComponent):
  87. @overload
  88. @classmethod
  89. def create( # type: ignore
  90. cls,
  91. *children,
  92. as_child: Optional[Union[Var[bool], bool]] = None,
  93. style: Optional[Style] = None,
  94. key: Optional[Any] = None,
  95. id: Optional[Any] = None,
  96. class_name: Optional[Any] = None,
  97. autofocus: Optional[bool] = None,
  98. custom_attrs: Optional[Dict[str, Union[ImmutableVar, str]]] = None,
  99. on_blur: Optional[
  100. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  101. ] = None,
  102. on_click: Optional[
  103. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  104. ] = None,
  105. on_context_menu: Optional[
  106. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  107. ] = None,
  108. on_double_click: Optional[
  109. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  110. ] = None,
  111. on_focus: Optional[
  112. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  113. ] = None,
  114. on_mount: Optional[
  115. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  116. ] = None,
  117. on_mouse_down: Optional[
  118. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  119. ] = None,
  120. on_mouse_enter: Optional[
  121. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  122. ] = None,
  123. on_mouse_leave: Optional[
  124. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  125. ] = None,
  126. on_mouse_move: Optional[
  127. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  128. ] = None,
  129. on_mouse_out: Optional[
  130. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  131. ] = None,
  132. on_mouse_over: Optional[
  133. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  134. ] = None,
  135. on_mouse_up: Optional[
  136. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  137. ] = None,
  138. on_scroll: Optional[
  139. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  140. ] = None,
  141. on_unmount: Optional[
  142. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  143. ] = None,
  144. **props,
  145. ) -> "RadixPrimitiveComponentWithClassName":
  146. """Create the component.
  147. Args:
  148. *children: The children of the component.
  149. as_child: Change the default rendered element for the one passed as a child.
  150. style: The style of the component.
  151. key: A unique key for the component.
  152. id: The id for the component.
  153. class_name: The class name for the component.
  154. autofocus: Whether the component should take the focus once the page is loaded
  155. custom_attrs: custom attribute
  156. **props: The props of the component.
  157. Returns:
  158. The component.
  159. """
  160. ...