diff --git a/reflex/components/radix/themes/components/text_area.py b/reflex/components/radix/themes/components/text_area.py index 2eec48631..a2f843cd1 100644 --- a/reflex/components/radix/themes/components/text_area.py +++ b/reflex/components/radix/themes/components/text_area.py @@ -9,11 +9,14 @@ from reflex.vars import Var from ..base import ( LiteralAccentColor, + LiteralRadius, RadixThemesComponent, ) LiteralTextAreaSize = Literal["1", "2", "3"] +LiteralTextAreaResize = Literal["none", "vertical", "horizontal", "both"] + class TextArea(RadixThemesComponent, el.Textarea): """The input part of a TextArea, may be used by itself.""" @@ -26,9 +29,15 @@ class TextArea(RadixThemesComponent, el.Textarea): # The variant of the text area variant: Var[Literal["classic", "surface", "soft"]] + # The resize behavior of the text area: "none" | "vertical" | "horizontal" | "both" + resize: Var[LiteralTextAreaResize] + # The color of the text area color_scheme: Var[LiteralAccentColor] + # The radius of the text area: "none" | "small" | "medium" | "large" | "full" + radius: Var[LiteralRadius] + # Whether the form control should have autocomplete enabled auto_complete: Var[bool] diff --git a/reflex/components/radix/themes/components/text_area.pyi b/reflex/components/radix/themes/components/text_area.pyi index 48220be54..b1d247f09 100644 --- a/reflex/components/radix/themes/components/text_area.pyi +++ b/reflex/components/radix/themes/components/text_area.pyi @@ -32,6 +32,12 @@ class TextArea(RadixThemesComponent, el.Textarea): Literal["classic", "surface", "soft"], ] ] = None, + resize: Optional[ + Union[ + Var[Literal["none", "vertical", "horizontal", "both"]], + Literal["none", "vertical", "horizontal", "both"], + ] + ] = None, color_scheme: Optional[ Union[ Var[ @@ -94,6 +100,12 @@ class TextArea(RadixThemesComponent, el.Textarea): ], ] ] = None, + radius: Optional[ + Union[ + Var[Literal["none", "small", "medium", "large", "full"]], + Literal["none", "small", "medium", "large", "full"], + ] + ] = None, auto_complete: Optional[Union[Var[bool], bool]] = None, auto_focus: Optional[Union[Var[bool], bool]] = None, dirname: Optional[Union[Var[str], str]] = None,