ShakingTextField

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

textFieldValue

The current value of the text field.

onValueChange

Callback for handling changes in the text field value.

label

The label of the text field.

isError

Flag indicating whether there is an error in the text field.

errorText

The error text to display.

keyboardOptions

Keyboard options for the text field.

offsetX

Animatable for applying a shaking animation to the text field.