tooltip.pyi 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. """Stub file for reflex/components/radix/themes/components/tooltip.py"""
  2. # ------------------- DO NOT EDIT ----------------------
  3. # This file was generated by `scripts/pyi_generator.py`!
  4. # ------------------------------------------------------
  5. from typing import Any, Dict, Literal, Optional, Union, overload
  6. from reflex.vars import Var, BaseVar, ComputedVar
  7. from reflex.event import EventChain, EventHandler, EventSpec
  8. from reflex.style import Style
  9. from reflex.vars import Var
  10. from ..base import RadixThemesComponent
  11. class Tooltip(RadixThemesComponent):
  12. @overload
  13. @classmethod
  14. def create( # type: ignore
  15. cls,
  16. *children,
  17. color: Optional[Union[Var[str], str]] = None,
  18. color_scheme: Optional[
  19. Union[
  20. Var[
  21. Literal[
  22. "tomato",
  23. "red",
  24. "ruby",
  25. "crimson",
  26. "pink",
  27. "plum",
  28. "purple",
  29. "violet",
  30. "iris",
  31. "indigo",
  32. "blue",
  33. "cyan",
  34. "teal",
  35. "jade",
  36. "green",
  37. "grass",
  38. "brown",
  39. "orange",
  40. "sky",
  41. "mint",
  42. "lime",
  43. "yellow",
  44. "amber",
  45. "gold",
  46. "bronze",
  47. "gray",
  48. ]
  49. ],
  50. Literal[
  51. "tomato",
  52. "red",
  53. "ruby",
  54. "crimson",
  55. "pink",
  56. "plum",
  57. "purple",
  58. "violet",
  59. "iris",
  60. "indigo",
  61. "blue",
  62. "cyan",
  63. "teal",
  64. "jade",
  65. "green",
  66. "grass",
  67. "brown",
  68. "orange",
  69. "sky",
  70. "mint",
  71. "lime",
  72. "yellow",
  73. "amber",
  74. "gold",
  75. "bronze",
  76. "gray",
  77. ],
  78. ]
  79. ] = None,
  80. content: Optional[Union[Var[str], str]] = None,
  81. style: Optional[Style] = None,
  82. key: Optional[Any] = None,
  83. id: Optional[Any] = None,
  84. class_name: Optional[Any] = None,
  85. autofocus: Optional[bool] = None,
  86. custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
  87. on_blur: Optional[
  88. Union[EventHandler, EventSpec, list, function, BaseVar]
  89. ] = None,
  90. on_click: Optional[
  91. Union[EventHandler, EventSpec, list, function, BaseVar]
  92. ] = None,
  93. on_context_menu: Optional[
  94. Union[EventHandler, EventSpec, list, function, BaseVar]
  95. ] = None,
  96. on_double_click: Optional[
  97. Union[EventHandler, EventSpec, list, function, BaseVar]
  98. ] = None,
  99. on_focus: Optional[
  100. Union[EventHandler, EventSpec, list, function, BaseVar]
  101. ] = None,
  102. on_mount: Optional[
  103. Union[EventHandler, EventSpec, list, function, BaseVar]
  104. ] = None,
  105. on_mouse_down: Optional[
  106. Union[EventHandler, EventSpec, list, function, BaseVar]
  107. ] = None,
  108. on_mouse_enter: Optional[
  109. Union[EventHandler, EventSpec, list, function, BaseVar]
  110. ] = None,
  111. on_mouse_leave: Optional[
  112. Union[EventHandler, EventSpec, list, function, BaseVar]
  113. ] = None,
  114. on_mouse_move: Optional[
  115. Union[EventHandler, EventSpec, list, function, BaseVar]
  116. ] = None,
  117. on_mouse_out: Optional[
  118. Union[EventHandler, EventSpec, list, function, BaseVar]
  119. ] = None,
  120. on_mouse_over: Optional[
  121. Union[EventHandler, EventSpec, list, function, BaseVar]
  122. ] = None,
  123. on_mouse_up: Optional[
  124. Union[EventHandler, EventSpec, list, function, BaseVar]
  125. ] = None,
  126. on_scroll: Optional[
  127. Union[EventHandler, EventSpec, list, function, BaseVar]
  128. ] = None,
  129. on_unmount: Optional[
  130. Union[EventHandler, EventSpec, list, function, BaseVar]
  131. ] = None,
  132. **props
  133. ) -> "Tooltip":
  134. """Create a new component instance.
  135. Will prepend "RadixThemes" to the component tag to avoid conflicts with
  136. other UI libraries for common names, like Text and Button.
  137. Args:
  138. *children: Child components.
  139. color: map to CSS default color property.
  140. color_scheme: map to radix color property.
  141. content: The content of the tooltip.
  142. style: The style of the component.
  143. key: A unique key for the component.
  144. id: The id for the component.
  145. class_name: The class name for the component.
  146. autofocus: Whether the component should take the focus once the page is loaded
  147. custom_attrs: custom attribute
  148. **props: Component properties.
  149. Returns:
  150. A new component instance.
  151. """
  152. ...
  153. tooltip = Tooltip.create