Time Picker
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.
cancel Text
text to be used for the cancel button.
accept Text
text to be used for the confirm button.
on Dismiss Request
callback for when user taps outside the dialog.
on Accept
callBack for the confirm button.
on Cancel
callback for the cancel button.
title
text to be used for the picker title.
modifier
: optional modifier.