https://kotlinlang.org logo
#compose
Title
# compose
r

Ruben Quadros

09/28/2022, 12:31 PM
Hi everyone, how can I limit max characters in
Text
component?
z

Zaki Shaikh

09/28/2022, 2:14 PM
onValueChange = { text ->
If (text.length < maxCharacters) {
yourTextState = text
}
}
a

Ale Stamato

09/28/2022, 4:16 PM
onValueChange
is a
TextField
API
120 Views