strict_mode.pyi 2.3 KB

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