<div class='type'>Interface</div>


<a id='references'></a>



<h2 id="overload-1">Overload 1</h2>

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



```kotlin
fun interface TextFieldDecorator
```


Composable interface that allows to add decorations around text field, such as icon, placeholder,
helper messages or similar, and automatically increase the hit target area of the text field.


## Functions



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


<h2 id="decoration-innertextfield">Decoration</h2>

```kotlin
@Composable
    fun Decoration(innerTextField: @Composable () -> Unit)
```


To allow you to control the placement of the inner text field relative to your decorations,
the text field implementation will pass in a framework-controlled composable parameter
`innerTextField` to this method. You must not call `innerTextField` more than once.