video.pyi 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. """Stub file for reflex/components/next/video.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 EventType
  8. from reflex.style import Style
  9. from reflex.vars.base import Var
  10. from .base import NextComponent
  11. class Video(NextComponent):
  12. @overload
  13. @classmethod
  14. def create( # type: ignore
  15. cls,
  16. *children,
  17. src: Optional[Union[Var[str], str]] = None,
  18. as_: Optional[Component] = None,
  19. style: Optional[Style] = None,
  20. key: Optional[Any] = None,
  21. id: Optional[Any] = None,
  22. class_name: Optional[Any] = None,
  23. autofocus: Optional[bool] = None,
  24. custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
  25. on_blur: Optional[EventType[()]] = None,
  26. on_click: Optional[EventType[()]] = None,
  27. on_context_menu: Optional[EventType[()]] = None,
  28. on_double_click: Optional[EventType[()]] = None,
  29. on_focus: Optional[EventType[()]] = None,
  30. on_mount: Optional[EventType[()]] = None,
  31. on_mouse_down: Optional[EventType[()]] = None,
  32. on_mouse_enter: Optional[EventType[()]] = None,
  33. on_mouse_leave: Optional[EventType[()]] = None,
  34. on_mouse_move: Optional[EventType[()]] = None,
  35. on_mouse_out: Optional[EventType[()]] = None,
  36. on_mouse_over: Optional[EventType[()]] = None,
  37. on_mouse_up: Optional[EventType[()]] = None,
  38. on_scroll: Optional[EventType[()]] = None,
  39. on_unmount: Optional[EventType[()]] = None,
  40. **props,
  41. ) -> "Video":
  42. """Create a Video component.
  43. Args:
  44. *children: The children of the component.
  45. src: the URL
  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 Video component.
  55. """
  56. ...