Pin Flow
fun PinFlow(value: String, onValueChange: (String) -> Unit, modifier: Modifier = Modifier, length: Int = 4, mode: PinFlowMode = PinFlowMode.Boxes, secure: Boolean = false, revealLastDigit: Boolean = false, isAlphanumeric: Boolean = false, animations: Set<PinFlowAnimation> = PinFlowDefaults.animations(), colors: PinFlowColors = PinFlowDefaults.colors(), dimensions: PinFlowDimensions = PinFlowDefaults.dimensions(), keyboardOptions: KeyboardOptions = PinFlowDefaults.keyboardOptions(
isAlphanumeric = isAlphanumeric,
secure = secure || mode == PinFlowMode.SecurePin,
), keyboardActions: KeyboardActions = KeyboardActions.Default, isError: Boolean = false, isSuccess: Boolean = false, enabled: Boolean = true, maskChar: String = "", onComplete: (String) -> Unit? = null)
Branded OTP / PIN input for Jetpack Compose — one hidden BasicTextField, animated visual cells.