@@ -13,9 +13,10 @@ from reflex.components.core.debounce import DebounceInput
13
13
from reflex .components .el import elements
14
14
from reflex .constants import EventTriggers
15
15
from reflex .vars import Var
16
- from ..base import LiteralAccentColor , RadixThemesComponent
16
+ from ..base import LiteralAccentColor , LiteralRadius , RadixThemesComponent
17
17
18
18
LiteralTextAreaSize = Literal ["1" , "2" , "3" ]
19
+ LiteralTextAreaResize = Literal ["none" , "vertical" , "horizontal" , "both" ]
19
20
20
21
class TextArea (RadixThemesComponent , elements .Textarea ):
21
22
@overload
@@ -32,6 +33,12 @@ class TextArea(RadixThemesComponent, elements.Textarea):
32
33
Literal ["classic" , "surface" , "soft" ],
33
34
]
34
35
] = None ,
36
+ resize : Optional [
37
+ Union [
38
+ Var [Literal ["none" , "vertical" , "horizontal" , "both" ]],
39
+ Literal ["none" , "vertical" , "horizontal" , "both" ],
40
+ ]
41
+ ] = None ,
35
42
color_scheme : Optional [
36
43
Union [
37
44
Var [
@@ -94,6 +101,12 @@ class TextArea(RadixThemesComponent, elements.Textarea):
94
101
],
95
102
]
96
103
] = None ,
104
+ radius : Optional [
105
+ Union [
106
+ Var [Literal ["none" , "small" , "medium" , "large" , "full" ]],
107
+ Literal ["none" , "small" , "medium" , "large" , "full" ],
108
+ ]
109
+ ] = None ,
97
110
auto_complete : Optional [Union [Var [bool ], bool ]] = None ,
98
111
auto_focus : Optional [Union [Var [bool ], bool ]] = None ,
99
112
dirname : Optional [Union [Var [str ], str ]] = None ,
@@ -219,7 +232,9 @@ class TextArea(RadixThemesComponent, elements.Textarea):
219
232
*children: The children of the component.
220
233
size: The size of the text area: "1" | "2" | "3"
221
234
variant: The variant of the text area
235
+ resize: The resize behavior of the text area: "none" | "vertical" | "horizontal" | "both"
222
236
color_scheme: The color of the text area
237
+ radius: The radius of the text area: "none" | "small" | "medium" | "large" | "full"
223
238
auto_complete: Whether the form control should have autocomplete enabled
224
239
auto_focus: Automatically focuses the textarea when the page loads
225
240
dirname: Name part of the textarea to submit in 'dir' and 'name' pair when form is submitted
0 commit comments