1
0

section.pyi 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. """Stub file for reflex/components/radix/themes/layout/section.py"""
  2. # ------------------- DO NOT EDIT ----------------------
  3. # This file was generated by `reflex/utils/pyi_generator.py`!
  4. # ------------------------------------------------------
  5. from typing import Any, Dict, Literal, Optional, Union, overload
  6. from reflex.components.core.breakpoints import Breakpoints
  7. from reflex.components.el import elements
  8. from reflex.event import EventType
  9. from reflex.style import Style
  10. from reflex.vars.base import Var
  11. from ..base import RadixThemesComponent
  12. LiteralSectionSize = Literal["1", "2", "3"]
  13. class Section(elements.Section, RadixThemesComponent):
  14. @overload
  15. @classmethod
  16. def create( # type: ignore
  17. cls,
  18. *children,
  19. size: Optional[
  20. Union[
  21. Breakpoints[str, Literal["1", "2", "3"]],
  22. Literal["1", "2", "3"],
  23. Var[
  24. Union[
  25. Breakpoints[str, Literal["1", "2", "3"]], Literal["1", "2", "3"]
  26. ]
  27. ],
  28. ]
  29. ] = None,
  30. access_key: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  31. auto_capitalize: Optional[
  32. Union[Var[Union[bool, int, str]], bool, int, str]
  33. ] = None,
  34. content_editable: Optional[
  35. Union[Var[Union[bool, int, str]], bool, int, str]
  36. ] = None,
  37. context_menu: Optional[
  38. Union[Var[Union[bool, int, str]], bool, int, str]
  39. ] = None,
  40. dir: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  41. draggable: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  42. enter_key_hint: Optional[
  43. Union[Var[Union[bool, int, str]], bool, int, str]
  44. ] = None,
  45. hidden: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  46. input_mode: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  47. item_prop: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  48. lang: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  49. role: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  50. slot: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  51. spell_check: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  52. tab_index: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  53. title: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  54. style: Optional[Style] = None,
  55. key: Optional[Any] = None,
  56. id: Optional[Any] = None,
  57. class_name: Optional[Any] = None,
  58. autofocus: Optional[bool] = None,
  59. custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
  60. on_blur: Optional[EventType[()]] = None,
  61. on_click: Optional[EventType[()]] = None,
  62. on_context_menu: Optional[EventType[()]] = None,
  63. on_double_click: Optional[EventType[()]] = None,
  64. on_focus: Optional[EventType[()]] = None,
  65. on_mount: Optional[EventType[()]] = None,
  66. on_mouse_down: Optional[EventType[()]] = None,
  67. on_mouse_enter: Optional[EventType[()]] = None,
  68. on_mouse_leave: Optional[EventType[()]] = None,
  69. on_mouse_move: Optional[EventType[()]] = None,
  70. on_mouse_out: Optional[EventType[()]] = None,
  71. on_mouse_over: Optional[EventType[()]] = None,
  72. on_mouse_up: Optional[EventType[()]] = None,
  73. on_scroll: Optional[EventType[()]] = None,
  74. on_unmount: Optional[EventType[()]] = None,
  75. **props,
  76. ) -> "Section":
  77. """Create a new component instance.
  78. Will prepend "RadixThemes" to the component tag to avoid conflicts with
  79. other UI libraries for common names, like Text and Button.
  80. Args:
  81. *children: Child components.
  82. size: The size of the section: "1" - "3" (default "2")
  83. access_key: Provides a hint for generating a keyboard shortcut for the current element.
  84. auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
  85. content_editable: Indicates whether the element's content is editable.
  86. context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
  87. dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
  88. draggable: Defines whether the element can be dragged.
  89. enter_key_hint: Hints what media types the media element is able to play.
  90. hidden: Defines whether the element is hidden.
  91. input_mode: Defines the type of the element.
  92. item_prop: Defines the name of the element for metadata purposes.
  93. lang: Defines the language used in the element.
  94. role: Defines the role of the element.
  95. slot: Assigns a slot in a shadow DOM shadow tree to an element.
  96. spell_check: Defines whether the element may be checked for spelling errors.
  97. tab_index: Defines the position of the current element in the tabbing order.
  98. title: Defines a tooltip for the element.
  99. style: The style of the component.
  100. key: A unique key for the component.
  101. id: The id for the component.
  102. class_name: The class name for the component.
  103. autofocus: Whether the component should take the focus once the page is loaded
  104. custom_attrs: custom attribute
  105. **props: Component properties.
  106. Returns:
  107. A new component instance.
  108. """
  109. ...
  110. section = Section.create