App Otp Verification
fun AppOtpVerification(modifier: Modifier = Modifier, otpText: String, otpCount: Int = 6, isError: Boolean = false, errorText: String? = null, onOtpTextChange: (text: String, isComplete: Boolean) -> Unit, onResendClick: () -> Unit)
A custom OTP (One-Time Password) verification component. It displays a series of boxes for digit input and includes a resend timer.
Parameters
modifier
The Modifier to be applied to the component.
otp Text
The current text value of the OTP.
otp Count
The number of digits in the OTP.
is Error
Whether the component should display an error state.
error Text
Optional error message to display when isError is true.
on Otp Text Change
Callback when the OTP text changes. Receives the text and whether it's complete.
on Resend Click
Callback when the resend button is clicked.