@@ -73,6 +73,7 @@ fun TextInput(
7373 style : TextStyle = CodeTheme .typography.textMedium,
7474 placeholderStyle : TextStyle = CodeTheme .typography.textMedium,
7575 shape : Shape = CodeTheme .shapes.extraSmall,
76+ contentAlignment : Alignment .Vertical = Alignment .CenterVertically ,
7677 textFieldAlignment : Alignment = Alignment .CenterStart ,
7778 colors : TextFieldColors = inputColors(),
7879 enabled : Boolean = true,
@@ -147,6 +148,7 @@ fun TextInput(
147148 leadingIcon = leadingIcon,
148149 trailingIcon = trailingIcon,
149150 contentPadding = contentPadding,
151+ contentAlignment = contentAlignment,
150152 textFieldAlignment = textFieldAlignment,
151153 shape = shape,
152154 innerTextField = it,
@@ -185,6 +187,7 @@ private fun DecoratorBox(
185187 leadingIcon : (@Composable () -> Unit )? ,
186188 trailingIcon : (@Composable () -> Unit )? ,
187189 shape : Shape ,
190+ contentAlignment : Alignment .Vertical = Alignment .CenterVertically ,
188191 textFieldAlignment : Alignment = Alignment .CenterStart ,
189192 innerTextField : @Composable () -> Unit ,
190193) {
@@ -196,7 +199,7 @@ private fun DecoratorBox(
196199 color = borderColor,
197200 shape = shape,
198201 ),
199- verticalAlignment = Alignment . CenterVertically ,
202+ verticalAlignment = contentAlignment ,
200203 horizontalArrangement = Arrangement .spacedBy(CodeTheme .dimens.staticGrid.x2)
201204 ) {
202205 leadingIcon?.invoke()
0 commit comments