textarea.pyi 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. """Stub file for reflex/components/chakra/forms/textarea.py"""
  2. # ------------------- DO NOT EDIT ----------------------
  3. # This file was generated by `scripts/pyi_generator.py`!
  4. # ------------------------------------------------------
  5. from typing import Any, Dict, Literal, Optional, Union, overload
  6. from reflex.vars import Var, BaseVar, ComputedVar
  7. from reflex.event import EventChain, EventHandler, EventSpec
  8. from reflex.style import Style
  9. from typing import Any, Union
  10. from reflex.components.chakra import ChakraComponent, LiteralInputVariant
  11. from reflex.components.component import Component
  12. from reflex.components.core.debounce import DebounceInput
  13. from reflex.constants import EventTriggers
  14. from reflex.vars import Var
  15. class TextArea(ChakraComponent):
  16. def get_event_triggers(self) -> dict[str, Union[Var, Any]]: ...
  17. @overload
  18. @classmethod
  19. def create( # type: ignore
  20. cls,
  21. *children,
  22. value: Optional[Union[Var[str], str]] = None,
  23. default_value: Optional[Union[Var[str], str]] = None,
  24. placeholder: Optional[Union[Var[str], str]] = None,
  25. error_border_color: Optional[Union[Var[str], str]] = None,
  26. focus_border_color: Optional[Union[Var[str], str]] = None,
  27. is_disabled: Optional[Union[Var[bool], bool]] = None,
  28. is_invalid: Optional[Union[Var[bool], bool]] = None,
  29. is_read_only: Optional[Union[Var[bool], bool]] = None,
  30. is_required: Optional[Union[Var[bool], bool]] = None,
  31. variant: Optional[
  32. Union[
  33. Var[Literal["outline", "filled", "flushed", "unstyled"]],
  34. Literal["outline", "filled", "flushed", "unstyled"],
  35. ]
  36. ] = None,
  37. name: Optional[Union[Var[str], str]] = None,
  38. style: Optional[Style] = None,
  39. key: Optional[Any] = None,
  40. id: Optional[Any] = None,
  41. class_name: Optional[Any] = None,
  42. autofocus: Optional[bool] = None,
  43. custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
  44. on_blur: Optional[
  45. Union[EventHandler, EventSpec, list, function, BaseVar]
  46. ] = None,
  47. on_change: Optional[
  48. Union[EventHandler, EventSpec, list, function, BaseVar]
  49. ] = None,
  50. on_click: Optional[
  51. Union[EventHandler, EventSpec, list, function, BaseVar]
  52. ] = None,
  53. on_context_menu: Optional[
  54. Union[EventHandler, EventSpec, list, function, BaseVar]
  55. ] = None,
  56. on_double_click: Optional[
  57. Union[EventHandler, EventSpec, list, function, BaseVar]
  58. ] = None,
  59. on_focus: Optional[
  60. Union[EventHandler, EventSpec, list, function, BaseVar]
  61. ] = None,
  62. on_key_down: Optional[
  63. Union[EventHandler, EventSpec, list, function, BaseVar]
  64. ] = None,
  65. on_key_up: Optional[
  66. Union[EventHandler, EventSpec, list, function, BaseVar]
  67. ] = None,
  68. on_mount: Optional[
  69. Union[EventHandler, EventSpec, list, function, BaseVar]
  70. ] = None,
  71. on_mouse_down: Optional[
  72. Union[EventHandler, EventSpec, list, function, BaseVar]
  73. ] = None,
  74. on_mouse_enter: Optional[
  75. Union[EventHandler, EventSpec, list, function, BaseVar]
  76. ] = None,
  77. on_mouse_leave: Optional[
  78. Union[EventHandler, EventSpec, list, function, BaseVar]
  79. ] = None,
  80. on_mouse_move: Optional[
  81. Union[EventHandler, EventSpec, list, function, BaseVar]
  82. ] = None,
  83. on_mouse_out: Optional[
  84. Union[EventHandler, EventSpec, list, function, BaseVar]
  85. ] = None,
  86. on_mouse_over: Optional[
  87. Union[EventHandler, EventSpec, list, function, BaseVar]
  88. ] = None,
  89. on_mouse_up: Optional[
  90. Union[EventHandler, EventSpec, list, function, BaseVar]
  91. ] = None,
  92. on_scroll: Optional[
  93. Union[EventHandler, EventSpec, list, function, BaseVar]
  94. ] = None,
  95. on_unmount: Optional[
  96. Union[EventHandler, EventSpec, list, function, BaseVar]
  97. ] = None,
  98. **props
  99. ) -> "TextArea":
  100. """Create an Input component.
  101. Args:
  102. *children: The children of the component.
  103. value: State var to bind the input.
  104. default_value: The default value of the textarea.
  105. placeholder: The placeholder text.
  106. error_border_color: The border color when the input is invalid.
  107. focus_border_color: The border color when the input is focused.
  108. is_disabled: If true, the form control will be disabled.
  109. is_invalid: If true, the form control will be invalid.
  110. is_read_only: If true, the form control will be read-only.
  111. is_required: If true, the form control will be required.
  112. variant: "outline" | "filled" | "flushed" | "unstyled"
  113. name: The name of the form field
  114. style: The style of the component.
  115. key: A unique key for the component.
  116. id: The id for the component.
  117. class_name: The class name for the component.
  118. autofocus: Whether the component should take the focus once the page is loaded
  119. custom_attrs: custom attribute
  120. **props: The properties of the component.
  121. Returns:
  122. The component.
  123. """
  124. ...