TimeUIProvider

interface TimeUIProvider

UI rendering contract for the time picker's labels and controls.

Functions

Link copied to clipboard
abstract fun LabeledField(label: String?, modifier: Modifier, errorMessage: String?, content: @Composable () -> Unit)

Groups a control with its label; a null label reserves the label slot for alignment.

Link copied to clipboard
abstract fun NumberDropdown(modifier: Modifier, title: String, items: List<Int>, selected: Int, selectedText: String, itemText: (Int) -> String, onItemSelected: (Int) -> Unit)

Renders the hour or minute dropdown.

Link copied to clipboard
abstract fun NumberInput(modifier: Modifier, value: String, onValueChange: (String) -> Unit, title: String, onFocusChanged: (Boolean) -> Unit)

Renders the editable hour or minute field.

Link copied to clipboard
abstract fun PeriodSelector(modifier: Modifier, selected: TimePickerPeriod, amText: String, pmText: String, onItemSelected: (TimePickerPeriod) -> Unit)

Renders the compact vertical selector for AM and PM.