link.pyi 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. """Stub file for reflex/components/next/link.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 NextLink(Component):
  11. @overload
  12. @classmethod
  13. def create( # type: ignore
  14. cls,
  15. *children,
  16. href: Optional[Union[Var[str], str]] = None,
  17. pass_href: Optional[Union[Var[bool], bool]] = None,
  18. style: Optional[Style] = None,
  19. key: Optional[Any] = None,
  20. id: Optional[Any] = None,
  21. class_name: Optional[Any] = None,
  22. autofocus: Optional[bool] = None,
  23. custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
  24. on_blur: Optional[EventType[[], BASE_STATE]] = None,
  25. on_click: Optional[EventType[[], BASE_STATE]] = None,
  26. on_context_menu: Optional[EventType[[], BASE_STATE]] = None,
  27. on_double_click: Optional[EventType[[], BASE_STATE]] = None,
  28. on_focus: Optional[EventType[[], BASE_STATE]] = None,
  29. on_mount: Optional[EventType[[], BASE_STATE]] = None,
  30. on_mouse_down: Optional[EventType[[], BASE_STATE]] = None,
  31. on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None,
  32. on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None,
  33. on_mouse_move: Optional[EventType[[], BASE_STATE]] = None,
  34. on_mouse_out: Optional[EventType[[], BASE_STATE]] = None,
  35. on_mouse_over: Optional[EventType[[], BASE_STATE]] = None,
  36. on_mouse_up: Optional[EventType[[], BASE_STATE]] = None,
  37. on_scroll: Optional[EventType[[], BASE_STATE]] = None,
  38. on_unmount: Optional[EventType[[], BASE_STATE]] = None,
  39. **props,
  40. ) -> "NextLink":
  41. """Create the component.
  42. Args:
  43. *children: The children of the component.
  44. href: The page to link to.
  45. pass_href: Whether to pass the href prop to the child.
  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. ...