link.pyi 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  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, Dict, Optional, Union, overload
  6. from reflex.components.component import Component
  7. from reflex.event import BASE_STATE, EventType
  8. from reflex.style import Style
  9. from reflex.vars.base import Var
  10. class RawLink(Component):
  11. @overload
  12. @classmethod
  13. def create( # type: ignore
  14. cls,
  15. *children,
  16. href: Optional[Union[Var[str], str]] = None,
  17. rel: Optional[Union[Var[str], str]] = 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[Var, Any]]] = None,
  24. on_blur: Optional[EventType[[], BASE_STATE]] = None,
  25. on_click: Optional[EventType[[], BASE_STATE]] = None,
  26. on_context_menu: Optional[EventType[[], BASE_STATE]] = None,
  27. on_double_click: Optional[EventType[[], BASE_STATE]] = None,
  28. on_focus: Optional[EventType[[], BASE_STATE]] = None,
  29. on_mount: Optional[EventType[[], BASE_STATE]] = None,
  30. on_mouse_down: Optional[EventType[[], BASE_STATE]] = None,
  31. on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None,
  32. on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None,
  33. on_mouse_move: Optional[EventType[[], BASE_STATE]] = None,
  34. on_mouse_out: Optional[EventType[[], BASE_STATE]] = None,
  35. on_mouse_over: Optional[EventType[[], BASE_STATE]] = None,
  36. on_mouse_up: Optional[EventType[[], BASE_STATE]] = None,
  37. on_scroll: Optional[EventType[[], BASE_STATE]] = None,
  38. on_unmount: Optional[EventType[[], BASE_STATE]] = None,
  39. **props,
  40. ) -> "RawLink":
  41. """Create the component.
  42. Args:
  43. *children: The children of the component.
  44. href: The href.
  45. rel: The type of link.
  46. style: The style of the component.
  47. key: A unique key for the component.
  48. id: The id for the component.
  49. class_name: The class name for the component.
  50. autofocus: Whether the component should take the focus once the page is loaded
  51. custom_attrs: custom attribute
  52. **props: The props of the component.
  53. Returns:
  54. The component.
  55. """
  56. ...
  57. class ScriptTag(Component):
  58. @overload
  59. @classmethod
  60. def create( # type: ignore
  61. cls,
  62. *children,
  63. type_: Optional[Union[Var[str], str]] = None,
  64. source: Optional[Union[Var[str], str]] = None,
  65. integrity: Optional[Union[Var[str], str]] = None,
  66. crossorigin: Optional[Union[Var[str], str]] = None,
  67. referrer_policy: Optional[Union[Var[str], str]] = None,
  68. is_async: Optional[Union[Var[bool], bool]] = None,
  69. defer: Optional[Union[Var[bool], bool]] = None,
  70. style: Optional[Style] = None,
  71. key: Optional[Any] = None,
  72. id: Optional[Any] = None,
  73. class_name: Optional[Any] = None,
  74. autofocus: Optional[bool] = None,
  75. custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
  76. on_blur: Optional[EventType[[], BASE_STATE]] = None,
  77. on_click: Optional[EventType[[], BASE_STATE]] = None,
  78. on_context_menu: Optional[EventType[[], BASE_STATE]] = None,
  79. on_double_click: Optional[EventType[[], BASE_STATE]] = None,
  80. on_focus: Optional[EventType[[], BASE_STATE]] = None,
  81. on_mount: Optional[EventType[[], BASE_STATE]] = None,
  82. on_mouse_down: Optional[EventType[[], BASE_STATE]] = None,
  83. on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None,
  84. on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None,
  85. on_mouse_move: Optional[EventType[[], BASE_STATE]] = None,
  86. on_mouse_out: Optional[EventType[[], BASE_STATE]] = None,
  87. on_mouse_over: Optional[EventType[[], BASE_STATE]] = None,
  88. on_mouse_up: Optional[EventType[[], BASE_STATE]] = None,
  89. on_scroll: Optional[EventType[[], BASE_STATE]] = None,
  90. on_unmount: Optional[EventType[[], BASE_STATE]] = None,
  91. **props,
  92. ) -> "ScriptTag":
  93. """Create the component.
  94. Args:
  95. *children: The children of the component.
  96. type_: The type of script represented.
  97. source: The URI of an external script.
  98. integrity: Metadata to verify the content of the script.
  99. crossorigin: Whether to allow cross-origin requests.
  100. referrer_policy: Indicates which referrer to send when fetching the script.
  101. is_async: Whether to asynchronously load the script.
  102. defer: Whether to defer loading the script.
  103. style: The style of the component.
  104. key: A unique key for the component.
  105. id: The id for the component.
  106. class_name: The class name for the component.
  107. autofocus: Whether the component should take the focus once the page is loaded
  108. custom_attrs: custom attribute
  109. **props: The props of the component.
  110. Returns:
  111. The component.
  112. """
  113. ...