skeleton.pyi 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. """Stub file for reflex/components/radix/themes/components/skeleton.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.core.breakpoints import Breakpoints
  7. from reflex.event import BASE_STATE, EventType
  8. from reflex.style import Style
  9. from reflex.vars.base import Var
  10. from ..base import RadixLoadingProp, RadixThemesComponent
  11. class Skeleton(RadixLoadingProp, RadixThemesComponent):
  12. @overload
  13. @classmethod
  14. def create( # type: ignore
  15. cls,
  16. *children,
  17. width: Optional[
  18. Union[Breakpoints[str, str], Var[Union[Breakpoints[str, str], str]], str]
  19. ] = None,
  20. min_width: Optional[
  21. Union[Breakpoints[str, str], Var[Union[Breakpoints[str, str], str]], str]
  22. ] = None,
  23. max_width: Optional[
  24. Union[Breakpoints[str, str], Var[Union[Breakpoints[str, str], str]], str]
  25. ] = None,
  26. height: Optional[
  27. Union[Breakpoints[str, str], Var[Union[Breakpoints[str, str], str]], str]
  28. ] = None,
  29. min_height: Optional[
  30. Union[Breakpoints[str, str], Var[Union[Breakpoints[str, str], str]], str]
  31. ] = None,
  32. max_height: Optional[
  33. Union[Breakpoints[str, str], Var[Union[Breakpoints[str, str], str]], str]
  34. ] = None,
  35. loading: Optional[Union[Var[bool], bool]] = None,
  36. style: Optional[Style] = None,
  37. key: Optional[Any] = None,
  38. id: Optional[Any] = None,
  39. class_name: Optional[Any] = None,
  40. autofocus: Optional[bool] = None,
  41. custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
  42. on_blur: Optional[EventType[[], BASE_STATE]] = None,
  43. on_click: Optional[EventType[[], BASE_STATE]] = None,
  44. on_context_menu: Optional[EventType[[], BASE_STATE]] = None,
  45. on_double_click: Optional[EventType[[], BASE_STATE]] = None,
  46. on_focus: Optional[EventType[[], BASE_STATE]] = None,
  47. on_mount: Optional[EventType[[], BASE_STATE]] = None,
  48. on_mouse_down: Optional[EventType[[], BASE_STATE]] = None,
  49. on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None,
  50. on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None,
  51. on_mouse_move: Optional[EventType[[], BASE_STATE]] = None,
  52. on_mouse_out: Optional[EventType[[], BASE_STATE]] = None,
  53. on_mouse_over: Optional[EventType[[], BASE_STATE]] = None,
  54. on_mouse_up: Optional[EventType[[], BASE_STATE]] = None,
  55. on_scroll: Optional[EventType[[], BASE_STATE]] = None,
  56. on_unmount: Optional[EventType[[], BASE_STATE]] = None,
  57. **props,
  58. ) -> "Skeleton":
  59. """Create a new component instance.
  60. Will prepend "RadixThemes" to the component tag to avoid conflicts with
  61. other UI libraries for common names, like Text and Button.
  62. Args:
  63. *children: Child components.
  64. width: The width of the skeleton
  65. min_width: The minimum width of the skeleton
  66. max_width: The maximum width of the skeleton
  67. height: The height of the skeleton
  68. min_height: The minimum height of the skeleton
  69. max_height: The maximum height of the skeleton
  70. loading: If set, show an rx.spinner instead of the component children.
  71. style: The style of the component.
  72. key: A unique key for the component.
  73. id: The id for the component.
  74. class_name: The class name for the component.
  75. autofocus: Whether the component should take the focus once the page is loaded
  76. custom_attrs: custom attribute
  77. **props: Component properties.
  78. Returns:
  79. A new component instance.
  80. """
  81. ...
  82. skeleton = Skeleton.create