TimePicker

fun TimePicker(state: TimePickerState, cancelText: String?, acceptText: String?, onDismissRequest: () -> Unit, title: String, onAccept: () -> Unit, onCancel: () -> Unit, modifier: Modifier = Modifier)

DHIS2 TimePicker component a picker to enter time values component wraps Material 3 TimePicker

Parameters

state

a TimePickerState to manage the value changes.

cancelText

text to be used for the cancel button.

acceptText

text to be used for the confirm button.

onDismissRequest

callback for when user taps outside the dialog.

onAccept

callBack for the confirm button.

onCancel

callback for the cancel button.

title

text to be used for the picker title.

modifier

: optional modifier.