clipboard.pyi 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. """Stub file for reflex/components/core/clipboard.py"""
  2. # ------------------- DO NOT EDIT ----------------------
  3. # This file was generated by `reflex/utils/pyi_generator.py`!
  4. # ------------------------------------------------------
  5. from typing import Any, Callable, Dict, List, Optional, Union, overload
  6. from reflex.components.base.fragment import Fragment
  7. from reflex.event import EventHandler, EventSpec
  8. from reflex.style import Style
  9. from reflex.utils.imports import ImportVar
  10. from reflex.vars import Var
  11. class Clipboard(Fragment):
  12. @overload
  13. @classmethod
  14. def create( # type: ignore
  15. cls,
  16. *children,
  17. targets: Optional[Union[Var[List[str]], List[str]]] = None,
  18. on_paste_event_actions: Optional[
  19. Union[Var[Dict[str, Union[bool, int]]], Dict[str, Union[bool, int]]]
  20. ] = None,
  21. style: Optional[Style] = None,
  22. key: Optional[Any] = None,
  23. id: Optional[Any] = None,
  24. class_name: Optional[Any] = None,
  25. autofocus: Optional[bool] = None,
  26. custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
  27. on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  28. on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  29. on_context_menu: Optional[
  30. Union[EventHandler, EventSpec, list, Callable, Var]
  31. ] = None,
  32. on_double_click: Optional[
  33. Union[EventHandler, EventSpec, list, Callable, Var]
  34. ] = None,
  35. on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  36. on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  37. on_mouse_down: Optional[
  38. Union[EventHandler, EventSpec, list, Callable, Var]
  39. ] = None,
  40. on_mouse_enter: Optional[
  41. Union[EventHandler, EventSpec, list, Callable, Var]
  42. ] = None,
  43. on_mouse_leave: Optional[
  44. Union[EventHandler, EventSpec, list, Callable, Var]
  45. ] = None,
  46. on_mouse_move: Optional[
  47. Union[EventHandler, EventSpec, list, Callable, Var]
  48. ] = None,
  49. on_mouse_out: Optional[
  50. Union[EventHandler, EventSpec, list, Callable, Var]
  51. ] = None,
  52. on_mouse_over: Optional[
  53. Union[EventHandler, EventSpec, list, Callable, Var]
  54. ] = None,
  55. on_mouse_up: Optional[
  56. Union[EventHandler, EventSpec, list, Callable, Var]
  57. ] = None,
  58. on_paste: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  59. on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  60. on_unmount: Optional[
  61. Union[EventHandler, EventSpec, list, Callable, Var]
  62. ] = None,
  63. **props,
  64. ) -> "Clipboard":
  65. """Create a Clipboard component.
  66. Args:
  67. *children: The children of the component.
  68. targets: The element ids to attach the event listener to. Defaults to all child components or the document.
  69. on_paste_event_actions: Save the original event actions for the on_paste event.
  70. style: The style of the component.
  71. key: A unique key for the component.
  72. id: The id for the component.
  73. class_name: The class name for the component.
  74. autofocus: Whether the component should take the focus once the page is loaded
  75. custom_attrs: custom attribute
  76. **props: The properties of the component.
  77. Returns:
  78. The Clipboard Component.
  79. """
  80. ...
  81. def add_imports(self) -> dict[str, ImportVar]: ...
  82. def add_hooks(self) -> list[str]: ...
  83. clipboard = Clipboard.create