Do we have to implement the error text ourselves o...
# compose
a
Do we have to implement the error text ourselves or does
OutlinedTextField
include it somewhere?
t
You know that you can just jump into the sources of every compose component. There you can see the documentation. Also there is Documentation in the Web: https://developer.android.com/reference/kotlin/androidx/compose/material/package-summary#outlinedtextfield
a
@Timo Drick Well I did look into the documentation. I’m not talking about the
isError
or different state colors. I’m talking about the bottom error text that shows up, equivalent to
setError
for
TextInputLayout
.
t
AH ok sorry. I think you have to implement it yourself.
a
Thought so. Thanks for confirming.
*TextField*WithErrorState and *TextField*WithHelperMessage show you how to include an error and error message