getBackgroundColor

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

Return

A State containing the Color value for the background based on the current state.

Parameters

enabled

Indicates whether the input field is enabled. When false, the field is not interactive.

isError

Indicates whether the input field is in an error state. When true, the field should display an error indication.