diff --git a/src/components/TextInput/TextInput.tsx b/src/components/TextInput/TextInput.tsx index 1f4fae745..61ae103bc 100644 --- a/src/components/TextInput/TextInput.tsx +++ b/src/components/TextInput/TextInput.tsx @@ -63,22 +63,25 @@ export const TextInput: PolymorphicComponent = styles.wrapVariants({ borderRadius }) )} > - {LeftIcon && } + + {LeftIcon && } - + + + {RightIcon && } + - {RightIcon && } {controls} diff --git a/src/components/TextInput/styles.css.ts b/src/components/TextInput/styles.css.ts index c16954d58..87793004a 100644 --- a/src/components/TextInput/styles.css.ts +++ b/src/components/TextInput/styles.css.ts @@ -56,6 +56,15 @@ export const wrapVariants = recipe({ export type WrapVariants = RecipeVariants +export const inputContainer = style([ + atoms({ + display: 'inline-flex', + alignItems: 'center', + flexGrow: '1', + gap: '2', + }), +]) + export const input = recipe({ base: atoms({ display: 'block', @@ -64,7 +73,7 @@ export const input = recipe({ border: 'none', paddingX: '0', paddingY: '4', - width: 'full', + flexGrow: '1', height: 'full', focusRing: 'none', }),