Shaking Password Text Field
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
text Field Value
The current value of the password 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.
offset X
Animatable for applying a shaking animation to the text field.
leading Icon
The leading icon for the text field.
auth State
The authentication UI state containing information about password visibility.
switch Password Visibility
Callback for toggling password visibility.