How can I set a character limit in a BasicTextField (or BasicTextField2) in Jetpack Compose?
With the new BasicTextField function, which uses a state: TextFieldState as a parameter, it is no longer possible to directly intercept the text using text and onTextChange as before. This makes implementing a character limit more challenging since the internal state cannot be directly modified.
Is there an efficient way to implement this functionality with the new API?