SelectableInteractiveState

Represents the possible interactive states of a selectable. Selectable component are for example a checkbox or a radio button.

Inheritors

Types

Link copied to clipboard

Default state, the component is enabled and can be interacted with.

Link copied to clipboard

Disabled state, the component is disabled and cannot be interacted with.

Link copied to clipboard
data class Error(val errorMessage: String) : SelectableInteractiveState

Error state, the component is enabled and be interacted with. An error message is displayed next to the component.

Link copied to clipboard

Read-only state, the component cannot be interacted with but stays focusable.

Link copied to clipboard
data class Warning(val warningMessage: String) : SelectableInteractiveState

Warning state, the component is enabled and be interacted with. A warning message is displayed next to the component.