link.pyi 5.0 KB

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