getTextColor

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

Return

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

Parameters

enabled

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