From c0545d98ad41c632fd410bc6a8bec79a2461089e Mon Sep 17 00:00:00 2001 From: Tal Koren Date: Wed, 4 Dec 2024 12:19:52 +0200 Subject: [PATCH] feat(TextField): add dir prop (#2624) --- packages/core/src/components/TextField/TextField.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/core/src/components/TextField/TextField.tsx b/packages/core/src/components/TextField/TextField.tsx index e394e5889c..29ac18b44d 100644 --- a/packages/core/src/components/TextField/TextField.tsx +++ b/packages/core/src/components/TextField/TextField.tsx @@ -95,6 +95,7 @@ export interface TextFieldProps extends VibeComponentProps { controlled?: boolean; iconTooltipContent?: string; secondaryTooltipContent?: string; + dir?: "ltr" | "rtl" | "auto"; } const TextField: VibeComponent & { @@ -148,7 +149,8 @@ const TextField: VibeComponent & { name, controlled = false, iconTooltipContent, - secondaryTooltipContent + secondaryTooltipContent, + dir }: TextFieldProps, ref ) => { @@ -302,6 +304,7 @@ const TextField: VibeComponent & { aria-describedby={allowExceedingMaxLengthTextId} required={required} tabIndex={tabIndex} + dir={dir} /> {loading && (