<div class='sourceset sourceset-common'>Common</div>

```kotlin
object TextFieldDefaults
```

Contains the default values used by [TextField](/jetpack-compose/androidx.compose.material3/material3/components/TextField). For defaults used in [OutlinedTextField](/jetpack-compose/androidx.compose.material3/material3/components/OutlinedTextField), see
[OutlinedTextFieldDefaults](/jetpack-compose/androidx.compose.material3/material3/objects/OutlinedTextFieldDefaults).

## Properties

<div class='sourceset sourceset-common'>Common</div>

```kotlin
val shape: Shape
```

Default shape for a [TextField](/jetpack-compose/androidx.compose.material3/material3/components/TextField).

<div class='sourceset sourceset-common'>Common</div>

```kotlin
val MinHeight = 56.dp
```

The default min height applied to a [TextField](/jetpack-compose/androidx.compose.material3/material3/components/TextField). Note that you can override it by applying
Modifier.heightIn directly on a text field.

<div class='sourceset sourceset-common'>Common</div>

```kotlin
val MinWidth = 280.dp
```

The default min width applied to a [TextField](/jetpack-compose/androidx.compose.material3/material3/components/TextField). Note that you can override it by applying
Modifier.widthIn directly on a text field.

<div class='sourceset sourceset-common'>Common</div>

```kotlin
val UnfocusedIndicatorThickness = 1.dp
```

The default thickness of the indicator line in [TextField](/jetpack-compose/androidx.compose.material3/material3/components/TextField) in unfocused state.

<div class='sourceset sourceset-common'>Common</div>

```kotlin
val FocusedIndicatorThickness = 2.dp
```

The default thickness of the indicator line in [TextField](/jetpack-compose/androidx.compose.material3/material3/components/TextField) in focused state.

<div class='sourceset sourceset-common'>Common</div>

> **Deprecated** Renamed to `OutlinedTextFieldDefaults.shape`

```kotlin
val outlinedShape: Shape
```

<div class='sourceset sourceset-common'>Common</div>

> **Deprecated** Renamed to `TextFieldDefaults.shape`

```kotlin
val filledShape: Shape
```

<div class='sourceset sourceset-common'>Common</div>

> **Deprecated** Split into `TextFieldDefaults.UnfocusedIndicatorThickness` and `OutlinedTextFieldDefaults.UnfocusedBorderThickness`. Please update as appropriate.

```kotlin
val UnfocusedBorderThickness = UnfocusedIndicatorThickness
```

<div class='sourceset sourceset-common'>Common</div>

> **Deprecated** Split into `TextFieldDefaults.FocusedIndicatorThickness` and `OutlinedTextFieldDefaults.FocusedBorderThickness`. Please update as appropriate.

```kotlin
val FocusedBorderThickness = FocusedIndicatorThickness
```

## Functions

<h2 id="decorator-state-enabled-linelimits-outputtransformation-interactionsource-labelposition-label-placeholder-leadingicon-trailingicon-prefix-suffix-supportingtext-iserror-colors-contentpadding-container">decorator</h2>

```kotlin
@Composable
    fun decorator(
        state: TextFieldState,
        enabled: Boolean,
        lineLimits: TextFieldLineLimits,
        outputTransformation: OutputTransformation?,
        interactionSource: InteractionSource,
        labelPosition: TextFieldLabelPosition = TextFieldLabelPosition.Attached(),
        label: @Composable (TextFieldLabelScope.() -> Unit)? = null,
        placeholder: @Composable (() -> Unit)? = null,
        leadingIcon: @Composable (() -> Unit)? = null,
        trailingIcon: @Composable (() -> Unit)? = null,
        prefix: @Composable (() -> Unit)? = null,
        suffix: @Composable (() -> Unit)? = null,
        supportingText: @Composable (() -> Unit)? = null,
        isError: Boolean = false,
        colors: TextFieldColors = colors(),
        contentPadding: PaddingValues =
            if (label == null || labelPosition is TextFieldLabelPosition.Above) {
                contentPaddingWithoutLabel()
            } else {
                contentPaddingWithLabel()
            },
        container: @Composable () -> Unit = {
            Container(
                enabled = enabled,
                isError = isError,
                interactionSource = interactionSource,
                colors = colors,
                shape = shape,
                focusedIndicatorLineThickness = FocusedIndicatorThickness,
                unfocusedIndicatorLineThickness = UnfocusedIndicatorThickness,
            )
        },
    ): TextFieldDecorator
```

A decorator used to create custom text fields based on
[Material Design filled text field](https://m3.material.io/components/text-fields/overview).

If your text field requires customising elements that aren't exposed by [TextField](/jetpack-compose/androidx.compose.material3/material3/components/TextField), such as
the indicator line thickness, consider using this decorator to achieve the desired design.

For example, if you wish to customise the bottom indicator line, you can pass a custom
`Container` to this decorator's `container`.

This decorator is meant to be used in conjunction with the overload of [BasicTextField](/jetpack-compose/androidx.compose.foundation/foundation/composable-functions/BasicTextField) that
accepts a [TextFieldDecorator](/jetpack-compose/androidx.compose.foundation/foundation/interfaces/TextFieldDecorator) parameter. For other overloads of [BasicTextField](/jetpack-compose/androidx.compose.foundation/foundation/composable-functions/BasicTextField) that use a
`decorationBox`, see `DecorationBox`.

An example of building a custom text field using [decorator](#decorator):

#### Parameters

| | |
| --- | --- |
| state | [TextFieldState](/jetpack-compose/androidx.compose.foundation/foundation/classes/TextFieldState) object that holds the internal editing state of the text field. |
| enabled | the enabled state of the text field. When `false`, this decorator will appear visually disabled. This must be the same value that is passed to [BasicTextField](/jetpack-compose/androidx.compose.foundation/foundation/composable-functions/BasicTextField). |
| lineLimits | whether the text field is `SingleLine` or `MultiLine`. This must be the same value that is passed to [BasicTextField](/jetpack-compose/androidx.compose.foundation/foundation/composable-functions/BasicTextField). |
| outputTransformation | [OutputTransformation](/jetpack-compose/androidx.compose.foundation/foundation/interfaces/OutputTransformation) that transforms how the contents of the text field are presented. This must be the same value that is passed to [BasicTextField](/jetpack-compose/androidx.compose.foundation/foundation/composable-functions/BasicTextField). |
| interactionSource | the read-only [InteractionSource](/jetpack-compose/androidx.compose.foundation/foundation/interfaces/InteractionSource) representing the stream of [Interaction](/jetpack-compose/androidx.compose.foundation/foundation/interfaces/Interaction)s for this text field. You must first create and pass in your own `remember`ed [MutableInteractionSource](/jetpack-compose/androidx.compose.foundation/foundation/interfaces/MutableInteractionSource) instance to the [BasicTextField](/jetpack-compose/androidx.compose.foundation/foundation/composable-functions/BasicTextField) for it to dispatch events. And then pass the same instance to this decorator to observe [Interaction](/jetpack-compose/androidx.compose.foundation/foundation/interfaces/Interaction)s and customize the appearance/behavior of the text field in different states. |
| labelPosition | the position of the label. See [TextFieldLabelPosition](/jetpack-compose/androidx.compose.material3/material3/classes/TextFieldLabelPosition). |
| label | the optional label to be displayed with this text field. The default text style uses [Typography.bodySmall](/jetpack-compose/androidx.compose.material3/material3/classes/Typography) when minimized and [Typography.bodyLarge](/jetpack-compose/androidx.compose.material3/material3/classes/Typography) when expanded. |
| placeholder | the optional placeholder to be displayed when the input text is empty. The default text style uses [Typography.bodyLarge](/jetpack-compose/androidx.compose.material3/material3/classes/Typography). |
| leadingIcon | the optional leading icon to be displayed at the beginning of the text field container. |
| trailingIcon | the optional trailing icon to be displayed at the end of the text field container. |
| prefix | the optional prefix to be displayed before the input text in the text field. |
| suffix | the optional suffix to be displayed after the input text in the text field. |
| supportingText | the optional supporting text to be displayed below the text field. |
| isError | indicates if the text field's current value is in an error state. When `true`, this decorator will display its contents in an error color. |
| colors | [TextFieldColors](/jetpack-compose/androidx.compose.material3/material3/classes/TextFieldColors) that will be used to resolve the colors used for this text field decorator in different states. See [TextFieldDefaults.colors](/jetpack-compose/androidx.compose.material3/material3/objects/TextFieldDefaults). Note: This parameter only affects the colors of elements in the decoration box. Elements of the [BasicTextField](/jetpack-compose/androidx.compose.foundation/foundation/composable-functions/BasicTextField) (such as text color or cursor color) are unaffected and must be changed using the relevant parameters of [BasicTextField](/jetpack-compose/androidx.compose.foundation/foundation/composable-functions/BasicTextField). |
| contentPadding | the padding between the input field and the surrounding elements of the decorator. Note that the padding values may not be respected if they are incompatible with the text field's size constraints or layout. See [TextFieldDefaults.contentPaddingWithLabel](/jetpack-compose/androidx.compose.material3/material3/objects/TextFieldDefaults) and [TextFieldDefaults.contentPaddingWithoutLabel](/jetpack-compose/androidx.compose.material3/material3/objects/TextFieldDefaults). |
| container | the container to be drawn behind the text field. By default, this uses `Container`. Default colors for the container come from the [colors](/jetpack-compose/androidx.compose.material/material/classes/Colors). |

<hr class="docs-overload-divider">

<h2 id="container-enabled-iserror-interactionsource-modifier-colors-shape-focusedindicatorlinethickness-unfocusedindicatorlinethickness">Container</h2>

```kotlin
@Composable
    fun Container(
        enabled: Boolean,
        isError: Boolean,
        interactionSource: InteractionSource,
        modifier: Modifier = Modifier,
        colors: TextFieldColors = colors(),
        shape: Shape = TextFieldDefaults.shape,
        focusedIndicatorLineThickness: Dp = FocusedIndicatorThickness,
        unfocusedIndicatorLineThickness: Dp = UnfocusedIndicatorThickness,
    )
```

Composable that draws a default container for a [TextField](/jetpack-compose/androidx.compose.material3/material3/components/TextField) with an indicator line at the
bottom. You can apply it to a [BasicTextField](/jetpack-compose/androidx.compose.foundation/foundation/composable-functions/BasicTextField) using [decorator](#decorator) or `DecorationBox` to create
a custom text field based on the styling of a Material filled text field. The [TextField](/jetpack-compose/androidx.compose.material3/material3/components/TextField)
component applies it automatically.

#### Parameters

| | |
| --- | --- |
| enabled | whether the text field is enabled |
| isError | whether the text field's current value is in error |
| interactionSource | the [InteractionSource](/jetpack-compose/androidx.compose.foundation/foundation/interfaces/InteractionSource) of the text field. Used to determine if the text field is in focus or not |
| modifier | the [Modifier](/jetpack-compose/androidx.compose.ui/ui/interfaces/Modifier) of this container |
| colors | [TextFieldColors](/jetpack-compose/androidx.compose.material3/material3/classes/TextFieldColors) used to resolve colors of the text field |
| shape | the shape of this container |
| focusedIndicatorLineThickness | thickness of the indicator line when the text field is focused |
| unfocusedIndicatorLineThickness | thickness of the indicator line when the text field is not focused |

<hr class="docs-overload-divider">

<h2 id="indicatorline-enabled-iserror-interactionsource-colors-textfieldshape-focusedindicatorlinethickness-unfocusedindicatorlinethickness">indicatorLine</h2>

```kotlin
fun Modifier.indicatorLine(
        enabled: Boolean,
        isError: Boolean,
        interactionSource: InteractionSource,
        colors: TextFieldColors? = null,
        textFieldShape: Shape? = null,
        focusedIndicatorLineThickness: Dp = FocusedIndicatorThickness,
        unfocusedIndicatorLineThickness: Dp = UnfocusedIndicatorThickness,
    ) =
        this then
            IndicatorLineElement(
                enabled = enabled,
                isError = isError,
                interactionSource = interactionSource,
                colors = colors,
                textFieldShape = textFieldShape,
                focusedIndicatorLineThickness = focusedIndicatorLineThickness,
                unfocusedIndicatorLineThickness = unfocusedIndicatorLineThickness,
            )
```

A modifier to draw a default bottom indicator line for [TextField](/jetpack-compose/androidx.compose.material3/material3/components/TextField). You can apply it to a
[BasicTextField](/jetpack-compose/androidx.compose.foundation/foundation/composable-functions/BasicTextField) to create a custom text field based on the styling of a Material filled text
field.

Consider using `Container`, which automatically applies this modifier as well as other text
field container styling.

#### Parameters

| | |
| --- | --- |
| enabled | whether the text field is enabled |
| isError | whether the text field's current value is in error |
| interactionSource | the [InteractionSource](/jetpack-compose/androidx.compose.foundation/foundation/interfaces/InteractionSource) of the text field. Used to determine if the text field is in focus or not |
| colors | [TextFieldColors](/jetpack-compose/androidx.compose.material3/material3/classes/TextFieldColors) used to resolve colors of the text field. If `null`, defaults to [TextFieldDefaults.colors](/jetpack-compose/androidx.compose.material3/material3/objects/TextFieldDefaults). |
| textFieldShape | the shape of the text field container. Used for clipping the indicator. If `null`, defaults to [TextFieldDefaults.shape](/jetpack-compose/androidx.compose.material3/material3/objects/TextFieldDefaults). |
| focusedIndicatorLineThickness | thickness of the indicator line when the text field is focused |
| unfocusedIndicatorLineThickness | thickness of the indicator line when the text field is not focused |

<hr class="docs-overload-divider">

<h2 id="decorationbox-value-innertextfield-enabled-singleline-visualtransformation-interactionsource-iserror-label-placeholder-leadingicon-trailingicon-prefix-suffix-supportingtext-shape-colors-contentpadding-container">DecorationBox</h2>

```kotlin
@Composable
    fun DecorationBox(
        value: String,
        innerTextField: @Composable () -> Unit,
        enabled: Boolean,
        singleLine: Boolean,
        visualTransformation: VisualTransformation,
        interactionSource: InteractionSource,
        isError: Boolean = false,
        label: @Composable (() -> Unit)? = null,
        placeholder: @Composable (() -> Unit)? = null,
        leadingIcon: @Composable (() -> Unit)? = null,
        trailingIcon: @Composable (() -> Unit)? = null,
        prefix: @Composable (() -> Unit)? = null,
        suffix: @Composable (() -> Unit)? = null,
        supportingText: @Composable (() -> Unit)? = null,
        shape: Shape = TextFieldDefaults.shape,
        colors: TextFieldColors = colors(),
        contentPadding: PaddingValues =
            if (label == null) {
                contentPaddingWithoutLabel()
            } else {
                contentPaddingWithLabel()
            },
        container: @Composable () -> Unit = {
            Container(
                enabled = enabled,
                isError = isError,
                interactionSource = interactionSource,
                modifier = Modifier,
                colors = colors,
                shape = shape,
                focusedIndicatorLineThickness = FocusedIndicatorThickness,
                unfocusedIndicatorLineThickness = UnfocusedIndicatorThickness,
            )
        },
    )
```

A decoration box used to create custom text fields based on
[Material Design filled text field](https://m3.material.io/components/text-fields/overview).

If your text field requires customising elements that aren't exposed by [TextField](/jetpack-compose/androidx.compose.material3/material3/components/TextField), consider
using this decoration box to achieve the desired design.

For example, if you wish to customise the bottom indicator line, you can pass a custom
`Container` to this decoration box's `container`.

This decoration box is meant to be used in conjunction with overloads of [BasicTextField](/jetpack-compose/androidx.compose.foundation/foundation/composable-functions/BasicTextField)
that accept a `decorationBox` parameter. For other overloads of [BasicTextField](/jetpack-compose/androidx.compose.foundation/foundation/composable-functions/BasicTextField) that use a
[TextFieldDecorator](/jetpack-compose/androidx.compose.foundation/foundation/interfaces/TextFieldDecorator), see [decorator](#decorator).

An example of building a custom text field using `DecorationBox`:

#### Parameters

| | |
| --- | --- |
| value | the input `String` shown by the text field |
| innerTextField | input text field that this decoration box wraps. Pass the framework-controlled composable parameter `innerTextField` from the `decorationBox` lambda of the [BasicTextField](/jetpack-compose/androidx.compose.foundation/foundation/composable-functions/BasicTextField) |
| enabled | the enabled state of the text field. When `false`, this decoration box will appear visually disabled. This must be the same value that is passed to [BasicTextField](/jetpack-compose/androidx.compose.foundation/foundation/composable-functions/BasicTextField). |
| singleLine | indicates if this is a single line or multi line text field. This must be the same value that is passed to [BasicTextField](/jetpack-compose/androidx.compose.foundation/foundation/composable-functions/BasicTextField). |
| visualTransformation | transforms the visual representation of the input `value`. This must be the same value that is passed to [BasicTextField](/jetpack-compose/androidx.compose.foundation/foundation/composable-functions/BasicTextField). |
| interactionSource | the read-only [InteractionSource](/jetpack-compose/androidx.compose.foundation/foundation/interfaces/InteractionSource) representing the stream of [Interaction](/jetpack-compose/androidx.compose.foundation/foundation/interfaces/Interaction)s for this text field. You must first create and pass in your own `remember`ed [MutableInteractionSource](/jetpack-compose/androidx.compose.foundation/foundation/interfaces/MutableInteractionSource) instance to the [BasicTextField](/jetpack-compose/androidx.compose.foundation/foundation/composable-functions/BasicTextField) for it to dispatch events. And then pass the same instance to this decoration box to observe [Interaction](/jetpack-compose/androidx.compose.foundation/foundation/interfaces/Interaction)s and customize the appearance / behavior of this text field in different states. |
| isError | indicates if the text field's current value is in an error state. When `true`, this decoration box will display its contents in an error color. |
| label | the optional label to be displayed with this text field. The default text style uses [Typography.bodySmall](/jetpack-compose/androidx.compose.material3/material3/classes/Typography) when minimized and [Typography.bodyLarge](/jetpack-compose/androidx.compose.material3/material3/classes/Typography) when expanded. |
| placeholder | the optional placeholder to be displayed when the text field is in focus and the input text is empty. The default text style for internal [Text](/jetpack-compose/androidx.compose.material3/material3/components/Text) is [Typography.bodyLarge](/jetpack-compose/androidx.compose.material3/material3/classes/Typography). |
| leadingIcon | the optional leading icon to be displayed at the beginning of the text field container |
| trailingIcon | the optional trailing icon to be displayed at the end of the text field container |
| prefix | the optional prefix to be displayed before the input text in the text field |
| suffix | the optional suffix to be displayed after the input text in the text field |
| supportingText | the optional supporting text to be displayed below the text field |
| shape | defines the shape of this decoration box's container |
| colors | [TextFieldColors](/jetpack-compose/androidx.compose.material3/material3/classes/TextFieldColors) that will be used to resolve the colors used for this text field decoration box in different states. See [TextFieldDefaults.colors](/jetpack-compose/androidx.compose.material3/material3/objects/TextFieldDefaults). Note: This parameter only affects the colors of elements in the decoration box. Elements of the [BasicTextField](/jetpack-compose/androidx.compose.foundation/foundation/composable-functions/BasicTextField) (such as text color or cursor color) are unaffected and must be changed using the relevant parameters of [BasicTextField](/jetpack-compose/androidx.compose.foundation/foundation/composable-functions/BasicTextField). |
| contentPadding | the padding between the input field and the surrounding elements of the decoration box. Note that the padding values may not be respected if they are incompatible with the text field's size constraints or layout. See [TextFieldDefaults.contentPaddingWithLabel](/jetpack-compose/androidx.compose.material3/material3/objects/TextFieldDefaults) and [TextFieldDefaults.contentPaddingWithoutLabel](/jetpack-compose/androidx.compose.material3/material3/objects/TextFieldDefaults). |
| container | the container to be drawn behind the text field. By default, this uses `Container`. Default colors for the container come from the [colors](/jetpack-compose/androidx.compose.material/material/classes/Colors). |

<hr class="docs-overload-divider">

<h2 id="contentpaddingwithlabel-start-end-top-bottom">contentPaddingWithLabel</h2>

```kotlin
fun contentPaddingWithLabel(
        start: Dp = TextFieldPadding,
        end: Dp = TextFieldPadding,
        top: Dp = TextFieldWithLabelVerticalPadding,
        bottom: Dp = TextFieldWithLabelVerticalPadding,
    ): PaddingValues
```

Default content padding of the input field within the [TextField](/jetpack-compose/androidx.compose.material3/material3/components/TextField) when there is an inside
label. Note that the top padding represents the padding above the label in the focused state.
The input field is placed directly beneath the label.

Horizontal padding represents the distance between the input field and the leading/trailing
icons (if present) or the horizontal edges of the container if there are no icons.

<hr class="docs-overload-divider">

<h2 id="contentpaddingwithoutlabel-start-top-end-bottom">contentPaddingWithoutLabel</h2>

```kotlin
fun contentPaddingWithoutLabel(
        start: Dp = TextFieldPadding,
        top: Dp = TextFieldPadding,
        end: Dp = TextFieldPadding,
        bottom: Dp = TextFieldPadding,
    ): PaddingValues
```

Default content padding of the input field within the [TextField](/jetpack-compose/androidx.compose.material3/material3/components/TextField) when the label is null or
positioned [TextFieldLabelPosition.Above](/jetpack-compose/androidx.compose.material3/material3/classes/TextFieldLabelPosition.Above).

Horizontal padding represents the distance between the input field and the leading/trailing
icons (if present) or the horizontal edges of the container if there are no icons.

<hr class="docs-overload-divider">

<h2 id="colors">colors</h2>

```kotlin
@Composable
    fun colors() =
        MaterialTheme.colorScheme.defaultTextFieldColors(LocalTextSelectionColors.current)
```

Creates a [TextFieldColors](/jetpack-compose/androidx.compose.material3/material3/classes/TextFieldColors) that represents the default input text, container, and content
colors (including label, placeholder, icons, etc.) used in a [TextField](/jetpack-compose/androidx.compose.material3/material3/components/TextField).

<hr class="docs-overload-divider">

<h2 id="colors-focusedtextcolor-unfocusedtextcolor-disabledtextcolor-errortextcolor-focusedcontainercolor-unfocusedcontainercolor-disabledcontainercolor-errorcontainercolor-cursorcolor-errorcursorcolor-selectioncolors-focusedindicatorcolor-unfocusedindicatorcolor-disabledindicatorcolor-errorindicatorcolor-focusedleadingiconcolor-unfocusedleadingiconcolor-disabledleadingiconcolor-errorleadingiconcolor-focusedtrailingiconcolor-unfocusedtrailingiconcolor-disabledtrailingiconcolor-errortrailingiconcolor-focusedlabelcolor-unfocusedlabelcolor-disabledlabelcolor-errorlabelcolor-focusedplaceholdercolor-unfocusedplaceholdercolor-disabledplaceholdercolor-errorplaceholdercolor-focusedsupportingtextcolor-unfocusedsupportingtextcolor-disabledsupportingtextcolor-errorsupportingtextcolor-focusedprefixcolor-unfocusedprefixcolor-disabledprefixcolor-errorprefixcolor-focusedsuffixcolor-unfocusedsuffixcolor-disabledsuffixcolor-errorsuffixcolor">colors</h2>

```kotlin
@Composable
    fun colors(
        focusedTextColor: Color = Color.Unspecified,
        unfocusedTextColor: Color = Color.Unspecified,
        disabledTextColor: Color = Color.Unspecified,
        errorTextColor: Color = Color.Unspecified,
        focusedContainerColor: Color = Color.Unspecified,
        unfocusedContainerColor: Color = Color.Unspecified,
        disabledContainerColor: Color = Color.Unspecified,
        errorContainerColor: Color = Color.Unspecified,
        cursorColor: Color = Color.Unspecified,
        errorCursorColor: Color = Color.Unspecified,
        selectionColors: TextSelectionColors? = null,
        focusedIndicatorColor: Color = Color.Unspecified,
        unfocusedIndicatorColor: Color = Color.Unspecified,
        disabledIndicatorColor: Color = Color.Unspecified,
        errorIndicatorColor: Color = Color.Unspecified,
        focusedLeadingIconColor: Color = Color.Unspecified,
        unfocusedLeadingIconColor: Color = Color.Unspecified,
        disabledLeadingIconColor: Color = Color.Unspecified,
        errorLeadingIconColor: Color = Color.Unspecified,
        focusedTrailingIconColor: Color = Color.Unspecified,
        unfocusedTrailingIconColor: Color = Color.Unspecified,
        disabledTrailingIconColor: Color = Color.Unspecified,
        errorTrailingIconColor: Color = Color.Unspecified,
        focusedLabelColor: Color = Color.Unspecified,
        unfocusedLabelColor: Color = Color.Unspecified,
        disabledLabelColor: Color = Color.Unspecified,
        errorLabelColor: Color = Color.Unspecified,
        focusedPlaceholderColor: Color = Color.Unspecified,
        unfocusedPlaceholderColor: Color = Color.Unspecified,
        disabledPlaceholderColor: Color = Color.Unspecified,
        errorPlaceholderColor: Color = Color.Unspecified,
        focusedSupportingTextColor: Color = Color.Unspecified,
        unfocusedSupportingTextColor: Color = Color.Unspecified,
        disabledSupportingTextColor: Color = Color.Unspecified,
        errorSupportingTextColor: Color = Color.Unspecified,
        focusedPrefixColor: Color = Color.Unspecified,
        unfocusedPrefixColor: Color = Color.Unspecified,
        disabledPrefixColor: Color = Color.Unspecified,
        errorPrefixColor: Color = Color.Unspecified,
        focusedSuffixColor: Color = Color.Unspecified,
        unfocusedSuffixColor: Color = Color.Unspecified,
        disabledSuffixColor: Color = Color.Unspecified,
        errorSuffixColor: Color = Color.Unspecified,
    ): TextFieldColors
```

Creates a [TextFieldColors](/jetpack-compose/androidx.compose.material3/material3/classes/TextFieldColors) that represents the default input text, container, and content
colors (including label, placeholder, icons, etc.) used in a [TextField](/jetpack-compose/androidx.compose.material3/material3/components/TextField).

#### Parameters

| | |
| --- | --- |
| focusedTextColor | the color used for the input text of this text field when focused |
| unfocusedTextColor | the color used for the input text of this text field when not focused |
| disabledTextColor | the color used for the input text of this text field when disabled |
| errorTextColor | the color used for the input text of this text field when in error state |
| focusedContainerColor | the container color for this text field when focused |
| unfocusedContainerColor | the container color for this text field when not focused |
| disabledContainerColor | the container color for this text field when disabled |
| errorContainerColor | the container color for this text field when in error state |
| cursorColor | the cursor color for this text field |
| errorCursorColor | the cursor color for this text field when in error state |
| selectionColors | the colors used when the input text of this text field is selected |
| focusedIndicatorColor | the indicator color for this text field when focused |
| unfocusedIndicatorColor | the indicator color for this text field when not focused |
| disabledIndicatorColor | the indicator color for this text field when disabled |
| errorIndicatorColor | the indicator color for this text field when in error state |
| focusedLeadingIconColor | the leading icon color for this text field when focused |
| unfocusedLeadingIconColor | the leading icon color for this text field when not focused |
| disabledLeadingIconColor | the leading icon color for this text field when disabled |
| errorLeadingIconColor | the leading icon color for this text field when in error state |
| focusedTrailingIconColor | the trailing icon color for this text field when focused |
| unfocusedTrailingIconColor | the trailing icon color for this text field when not focused |
| disabledTrailingIconColor | the trailing icon color for this text field when disabled |
| errorTrailingIconColor | the trailing icon color for this text field when in error state |
| focusedLabelColor | the label color for this text field when focused |
| unfocusedLabelColor | the label color for this text field when not focused |
| disabledLabelColor | the label color for this text field when disabled |
| errorLabelColor | the label color for this text field when in error state |
| focusedPlaceholderColor | the placeholder color for this text field when focused |
| unfocusedPlaceholderColor | the placeholder color for this text field when not focused |
| disabledPlaceholderColor | the placeholder color for this text field when disabled |
| errorPlaceholderColor | the placeholder color for this text field when in error state |
| focusedSupportingTextColor | the supporting text color for this text field when focused |
| unfocusedSupportingTextColor | the supporting text color for this text field when not focused |
| disabledSupportingTextColor | the supporting text color for this text field when disabled |
| errorSupportingTextColor | the supporting text color for this text field when in error state |
| focusedPrefixColor | the prefix color for this text field when focused |
| unfocusedPrefixColor | the prefix color for this text field when not focused |
| disabledPrefixColor | the prefix color for this text field when disabled |
| errorPrefixColor | the prefix color for this text field when in error state |
| focusedSuffixColor | the suffix color for this text field when focused |
| unfocusedSuffixColor | the suffix color for this text field when not focused |
| disabledSuffixColor | the suffix color for this text field when disabled |
| errorSuffixColor | the suffix color for this text field when in error state |

<hr class="docs-overload-divider">

<h2 id="containerbox-enabled-iserror-interactionsource-colors-shape">ContainerBox</h2>

```kotlin
@ExperimentalMaterial3Api
    @Composable
    fun ContainerBox(
        enabled: Boolean,
        isError: Boolean,
        interactionSource: InteractionSource,
        colors: TextFieldColors,
        shape: Shape = TextFieldDefaults.shape,
    ) =
        Container(
            enabled = enabled,
            isError = isError,
            interactionSource = interactionSource,
            modifier = Modifier,
            colors = colors,
            shape = shape,
            focusedIndicatorLineThickness = FocusedIndicatorThickness,
            unfocusedIndicatorLineThickness = UnfocusedIndicatorThickness,
        )
```

<hr class="docs-overload-divider">

<h2 id="textfieldwithlabelpadding-start-end-top-bottom">textFieldWithLabelPadding</h2>

```kotlin
fun textFieldWithLabelPadding(
        start: Dp = TextFieldPadding,
        end: Dp = TextFieldPadding,
        top: Dp = TextFieldWithLabelVerticalPadding,
        bottom: Dp = TextFieldWithLabelVerticalPadding,
    ): PaddingValues
```

<hr class="docs-overload-divider">

<h2 id="textfieldwithoutlabelpadding-start-top-end-bottom">textFieldWithoutLabelPadding</h2>

```kotlin
fun textFieldWithoutLabelPadding(
        start: Dp = TextFieldPadding,
        top: Dp = TextFieldPadding,
        end: Dp = TextFieldPadding,
        bottom: Dp = TextFieldPadding,
    ): PaddingValues
```

<hr class="docs-overload-divider">

<h2 id="outlinedtextfieldpadding-start-top-end-bottom">outlinedTextFieldPadding</h2>

```kotlin
fun outlinedTextFieldPadding(
        start: Dp = TextFieldPadding,
        top: Dp = TextFieldPadding,
        end: Dp = TextFieldPadding,
        bottom: Dp = TextFieldPadding,
    ): PaddingValues
```