Package-level declarations
Types
Link copied to clipboard
Link copied to clipboard
data class PinFlowColors(val focusedBorderColor: Color, val unfocusedBorderColor: Color, val errorBorderColor: Color, val successBorderColor: Color, val focusedContainerColor: Color, val unfocusedContainerColor: Color, val textColor: Color, val errorTextColor: Color, val successTextColor: Color, val glowColor: Color)
Link copied to clipboard
object PinFlowDefaults
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
object PinFlowValidator
Functions
Link copied to clipboard
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.