InputOTPFieldStyle

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.

The methods in this interface are expected to be implemented in a way that they return the appropriate Color values wrapped in State objects for reactive updates.

Inheritors

Functions

Link copied to clipboard

Returns the background color for the OTP input field in style based on its state.

Link copied to clipboard
abstract fun getBorderColor(enabled: Boolean, isFocused: Boolean, isError: Boolean): State<Color>

Returns the border color for the OTP input field in style based on its state.

Link copied to clipboard
abstract fun getTabIndicatorColor(enabled: Boolean, isFocused: Boolean, isError: Boolean): State<Color>

Returns the tab indicator color for the OTP input field in style based on its state. The tab indicator is typically used to show the cursor or active input position.

Link copied to clipboard

Returns the text color for the OTP input field in style based on whether it is enabled or disabled.