diff --git a/common/src/commonMain/kotlin/org/hisp/dhis/common/screens/InputIntegerScreen.kt b/common/src/commonMain/kotlin/org/hisp/dhis/common/screens/InputIntegerScreen.kt index 111bc5da5..eb46c038b 100644 --- a/common/src/commonMain/kotlin/org/hisp/dhis/common/screens/InputIntegerScreen.kt +++ b/common/src/commonMain/kotlin/org/hisp/dhis/common/screens/InputIntegerScreen.kt @@ -33,6 +33,20 @@ fun InputIntegerScreen() { } }, ) + SubTitle("Basic Input Integer with error", textColor = TextColor.OnSurfaceVariant) + var inputValueError by rememberSaveable { mutableStateOf("") } + + InputInteger( + title = "Label", + inputText = inputValueError, + onValueChanged = { + if (it != null) { + inputValueError = it + } + }, + state = InputShellState.ERROR, + supportingText = listOf(SupportingTextData("Numbers only", SupportingTextState.ERROR)), + ) var inputValue2 by rememberSaveable { mutableStateOf("") } SubTitle("Input Integer with legend", textColor = TextColor.OnSurfaceVariant) InputInteger(