base.pyi 5.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. """Stub file for reflex/components/el/elements/base.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.el.element import Element
  7. from reflex.event import BASE_STATE, EventType
  8. from reflex.style import Style
  9. from reflex.vars.base import Var
  10. class BaseHTML(Element):
  11. @overload
  12. @classmethod
  13. def create( # type: ignore
  14. cls,
  15. *children,
  16. access_key: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  17. auto_capitalize: Optional[
  18. Union[Var[Union[bool, int, str]], bool, int, str]
  19. ] = None,
  20. content_editable: Optional[
  21. Union[Var[Union[bool, int, str]], bool, int, str]
  22. ] = None,
  23. context_menu: Optional[
  24. Union[Var[Union[bool, int, str]], bool, int, str]
  25. ] = None,
  26. dir: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  27. draggable: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  28. enter_key_hint: Optional[
  29. Union[Var[Union[bool, int, str]], bool, int, str]
  30. ] = None,
  31. hidden: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  32. input_mode: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  33. item_prop: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  34. lang: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  35. role: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  36. slot: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  37. spell_check: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  38. tab_index: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  39. title: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  40. style: Optional[Style] = None,
  41. key: Optional[Any] = None,
  42. id: Optional[Any] = None,
  43. class_name: Optional[Any] = None,
  44. autofocus: Optional[bool] = None,
  45. custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
  46. on_blur: Optional[EventType[[], BASE_STATE]] = None,
  47. on_click: Optional[EventType[[], BASE_STATE]] = None,
  48. on_context_menu: Optional[EventType[[], BASE_STATE]] = None,
  49. on_double_click: Optional[EventType[[], BASE_STATE]] = None,
  50. on_focus: Optional[EventType[[], BASE_STATE]] = None,
  51. on_mount: Optional[EventType[[], BASE_STATE]] = None,
  52. on_mouse_down: Optional[EventType[[], BASE_STATE]] = None,
  53. on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None,
  54. on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None,
  55. on_mouse_move: Optional[EventType[[], BASE_STATE]] = None,
  56. on_mouse_out: Optional[EventType[[], BASE_STATE]] = None,
  57. on_mouse_over: Optional[EventType[[], BASE_STATE]] = None,
  58. on_mouse_up: Optional[EventType[[], BASE_STATE]] = None,
  59. on_scroll: Optional[EventType[[], BASE_STATE]] = None,
  60. on_unmount: Optional[EventType[[], BASE_STATE]] = None,
  61. **props,
  62. ) -> "BaseHTML":
  63. """Create the component.
  64. Args:
  65. *children: The children of the component.
  66. access_key: Provides a hint for generating a keyboard shortcut for the current element.
  67. auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
  68. content_editable: Indicates whether the element's content is editable.
  69. context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
  70. dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
  71. draggable: Defines whether the element can be dragged.
  72. enter_key_hint: Hints what media types the media element is able to play.
  73. hidden: Defines whether the element is hidden.
  74. input_mode: Defines the type of the element.
  75. item_prop: Defines the name of the element for metadata purposes.
  76. lang: Defines the language used in the element.
  77. role: Defines the role of the element.
  78. slot: Assigns a slot in a shadow DOM shadow tree to an element.
  79. spell_check: Defines whether the element may be checked for spelling errors.
  80. tab_index: Defines the position of the current element in the tabbing order.
  81. title: Defines a tooltip for the element.
  82. style: The style of the component.
  83. key: A unique key for the component.
  84. id: The id for the component.
  85. class_name: The class name for the component.
  86. autofocus: Whether the component should take the focus once the page is loaded
  87. custom_attrs: custom attribute
  88. **props: The props of the component.
  89. Returns:
  90. The component.
  91. """
  92. ...