client_side_routing.pyi 2.5 KB

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