base.pyi 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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, 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 NextComponent(Component):
  11. ...
  12. @overload
  13. @classmethod
  14. def create( # type: ignore
  15. cls,
  16. *children,
  17. style: Sequence[Mapping[str, Any]]
  18. | Mapping[str, Any]
  19. | Var[Mapping[str, Any]]
  20. | Breakpoints
  21. | None = None,
  22. key: Any | None = None,
  23. id: Any | None = None,
  24. class_name: Any | None = None,
  25. autofocus: bool | None = None,
  26. custom_attrs: dict[str, Var | Any] | None = None,
  27. on_blur: Optional[EventType[()]] = None,
  28. on_click: Optional[EventType[()]] = None,
  29. on_context_menu: Optional[EventType[()]] = None,
  30. on_double_click: Optional[EventType[()]] = None,
  31. on_focus: Optional[EventType[()]] = None,
  32. on_mount: Optional[EventType[()]] = None,
  33. on_mouse_down: Optional[EventType[()]] = None,
  34. on_mouse_enter: Optional[EventType[()]] = None,
  35. on_mouse_leave: Optional[EventType[()]] = None,
  36. on_mouse_move: Optional[EventType[()]] = None,
  37. on_mouse_out: Optional[EventType[()]] = None,
  38. on_mouse_over: Optional[EventType[()]] = None,
  39. on_mouse_up: Optional[EventType[()]] = None,
  40. on_scroll: Optional[EventType[()]] = None,
  41. on_unmount: Optional[EventType[()]] = None,
  42. **props,
  43. ) -> "NextComponent":
  44. """Create the component.
  45. Args:
  46. *children: The children of the component.
  47. style: The style of the component.
  48. key: A unique key for the component.
  49. id: The id for the component.
  50. class_name: The class name for the component.
  51. autofocus: Whether the component should take the focus once the page is loaded
  52. custom_attrs: custom attribute
  53. **props: The props of the component.
  54. Returns:
  55. The component.
  56. """
  57. ...