autofill

fun Modifier.autofill(autofillType: AutofillType, vararg autofillTypes: AutofillType, onFill: (String) -> Unit): Modifier

Mark this element as autofillable.

Parameters

autofillType

required first autofill type

autofillTypes

additional autofill types

onFill

callback to execute when the user agrees to autofill the form. Most often used to update the value of the form