1
0

base.pyi 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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, 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 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, Any]]] = None,
  23. on_blur: Optional[EventType[[], BASE_STATE]] = None,
  24. on_click: Optional[EventType[[], BASE_STATE]] = None,
  25. on_context_menu: Optional[EventType[[], BASE_STATE]] = None,
  26. on_double_click: Optional[EventType[[], BASE_STATE]] = None,
  27. on_focus: Optional[EventType[[], BASE_STATE]] = None,
  28. on_mount: Optional[EventType[[], BASE_STATE]] = None,
  29. on_mouse_down: Optional[EventType[[], BASE_STATE]] = None,
  30. on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None,
  31. on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None,
  32. on_mouse_move: Optional[EventType[[], BASE_STATE]] = None,
  33. on_mouse_out: Optional[EventType[[], BASE_STATE]] = None,
  34. on_mouse_over: Optional[EventType[[], BASE_STATE]] = None,
  35. on_mouse_up: Optional[EventType[[], BASE_STATE]] = None,
  36. on_scroll: Optional[EventType[[], BASE_STATE]] = None,
  37. on_unmount: Optional[EventType[[], BASE_STATE]] = None,
  38. **props,
  39. ) -> "NextComponent":
  40. """Create the component.
  41. Args:
  42. *children: The children of the component.
  43. style: The style of the component.
  44. key: A unique key for the component.
  45. id: The id for the component.
  46. class_name: The class name for the component.
  47. autofocus: Whether the component should take the focus once the page is loaded
  48. custom_attrs: custom attribute
  49. **props: The props of the component.
  50. Returns:
  51. The component.
  52. """
  53. ...