VerificationState

sealed interface VerificationState

Sealed interface representing the various verification states for code input components.

This interface provides a UI-focused state system that abstracts the underlying view model states into states that are relevant for verification input components.

States correspond to different visual appearances and behaviors:

  • Default: Initial state, ready for input

  • Verifying: Currently processing the code

  • Success: Code verification succeeded

  • Error: Code verification failed

Inheritors

Types

Link copied to clipboard

Default state indicating the component is ready for user input. Typically shows normal input styling without any status indicators.

Link copied to clipboard
data object Error : VerificationState

Error state indicating code verification failed. Typically displays error styling and allows retry.

Link copied to clipboard

Success state indicating the code was successfully verified. Often shows success indicators and may trigger navigation.

Link copied to clipboard

Verifying state indicating code submission is in progress. Usually displays loading indicators and disables input.