ShakingPasswordTextField

fun ShakingPasswordTextField(textFieldValue: String, onValueChange: (String) -> Unit, label: String, isError: Boolean, errorText: String, offsetX: Animatable<Float, AnimationVector1D>, leadingIcon: ImageVector = Icons.Default.Lock, authState: AuthUiState, switchPasswordVisibility: () -> Unit)

Composable function for rendering a shaking password text field with specific features.

Parameters

textFieldValue

The current value of the password 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.

offsetX

Animatable for applying a shaking animation to the text field.

leadingIcon

The leading icon for the text field.

authState

The authentication UI state containing information about password visibility.

switchPasswordVisibility

Callback for toggling password visibility.