Skip to content

Commit

Permalink
feat(TextField): add dir prop (#2624)
Browse files Browse the repository at this point in the history
  • Loading branch information
talkor authored Dec 4, 2024
1 parent de041ae commit c0545d9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/core/src/components/TextField/TextField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ export interface TextFieldProps extends VibeComponentProps {
controlled?: boolean;
iconTooltipContent?: string;
secondaryTooltipContent?: string;
dir?: "ltr" | "rtl" | "auto";
}

const TextField: VibeComponent<TextFieldProps, unknown> & {
Expand Down Expand Up @@ -148,7 +149,8 @@ const TextField: VibeComponent<TextFieldProps, unknown> & {
name,
controlled = false,
iconTooltipContent,
secondaryTooltipContent
secondaryTooltipContent,
dir
}: TextFieldProps,
ref
) => {
Expand Down Expand Up @@ -302,6 +304,7 @@ const TextField: VibeComponent<TextFieldProps, unknown> & {
aria-describedby={allowExceedingMaxLengthTextId}
required={required}
tabIndex={tabIndex}
dir={dir}
/>
{loading && (
<div
Expand Down

0 comments on commit c0545d9

Please sign in to comment.