Shaking Text Field
fun ShakingTextField(textFieldValue: String, onValueChange: (String) -> Unit, label: String, isError: Boolean, errorText: String, keyboardOptions: KeyboardOptions = KeyboardOptions(keyboardType = KeyboardType.Text), offsetX: Animatable<Float, AnimationVector1D>)
Composable function for rendering a shaking text field.
Parameters
text Field Value
The current value of the text field.
on Value Change
Callback for handling changes in the text field value.
label
The label of the text field.
is Error
Flag indicating whether there is an error in the text field.
error Text
The error text to display.
keyboard Options
Keyboard options for the text field.
offset X
Animatable for applying a shaking animation to the text field.