androidx.compose.foundation.text.input

TextFieldDecorator

Fun interface · from org.jetbrains.compose.foundation:foundation:1.12.2

No hand-written docs yet.

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.

fun interface TextFieldDecorator

How to get one

Ready-made values and functions that return it

Used by

Parameters that take a TextFieldDecorator.

Functions

Decoration

@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.

Library docs

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.