Package-level declarations
Types
Link copied to clipboard
An interface for defining the styling of an OTP (One-Time Password) input field. This interface provides several composable methods to retrieve different style attributes based on the state of the input field such as whether it is enabled, focused, or has an error.
Link copied to clipboard
A sealed interface defining styles for the OTP (One-Time Password) input field. This interface provides different implementations for various input field styles, such as Outline and Filled, each determining the appearance based on the component's state.
Functions
Link copied to clipboard
fun KPInputOTPField(style: InputOTPFieldStyle, otp: String, onValueChange: (String) -> Unit, modifier: Modifier = Modifier, otpLength: Int = DEFAULT_OTP_LENGTH, enabled: Boolean = true, hint: String? = null, errorText: String? = null, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() })
A Composable function for creating an OTP (One-Time Password) input field with custom styling and behavior. This component handles the input of a fixed-length OTP and includes error display and interaction handling.