base.pyi 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. """Stub file for reflex/components/next/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.style import Style
  9. from reflex.vars import Var
  10. class NextComponent(Component):
  11. ...
  12. @overload
  13. @classmethod
  14. def create( # type: ignore
  15. cls,
  16. *children,
  17. style: Optional[Style] = None,
  18. key: Optional[Any] = None,
  19. id: Optional[Any] = None,
  20. class_name: Optional[Any] = None,
  21. autofocus: Optional[bool] = None,
  22. custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
  23. on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  24. on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  25. on_context_menu: Optional[
  26. Union[EventHandler, EventSpec, list, Callable, Var]
  27. ] = None,
  28. on_double_click: Optional[
  29. Union[EventHandler, EventSpec, list, Callable, Var]
  30. ] = None,
  31. on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  32. on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  33. on_mouse_down: Optional[
  34. Union[EventHandler, EventSpec, list, Callable, Var]
  35. ] = None,
  36. on_mouse_enter: Optional[
  37. Union[EventHandler, EventSpec, list, Callable, Var]
  38. ] = None,
  39. on_mouse_leave: Optional[
  40. Union[EventHandler, EventSpec, list, Callable, Var]
  41. ] = None,
  42. on_mouse_move: Optional[
  43. Union[EventHandler, EventSpec, list, Callable, Var]
  44. ] = None,
  45. on_mouse_out: Optional[
  46. Union[EventHandler, EventSpec, list, Callable, Var]
  47. ] = None,
  48. on_mouse_over: Optional[
  49. Union[EventHandler, EventSpec, list, Callable, Var]
  50. ] = None,
  51. on_mouse_up: Optional[
  52. Union[EventHandler, EventSpec, list, Callable, Var]
  53. ] = None,
  54. on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  55. on_unmount: Optional[
  56. Union[EventHandler, EventSpec, list, Callable, Var]
  57. ] = None,
  58. **props,
  59. ) -> "NextComponent":
  60. """Create the component.
  61. Args:
  62. *children: The children of the component.
  63. style: The style of the component.
  64. key: A unique key for the component.
  65. id: The id for the component.
  66. class_name: The class name for the component.
  67. autofocus: Whether the component should take the focus once the page is loaded
  68. custom_attrs: custom attribute
  69. **props: The props of the component.
  70. Returns:
  71. The component.
  72. """
  73. ...