skeleton.pyi 3.7 KB

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