Composable Component

TimeInput

Time pickers help users select and set a specific time.

TimeInput

Common
@Composable
@ExperimentalMaterial3Api
fun TimeInput(
    state: TimePickerState,
    modifier: Modifier = Modifier,
    colors: TimePickerColors = TimePickerDefaults.colors(),
)

Parameters

state state for this timepicker, allows to subscribe to changes to TimePickerState.hour and TimePickerState.minute, and set the initial time for this picker.
modifier the Modifier to be applied to this time input
colors colors TimePickerColors that will be used to resolve the colors used for this time input in different states. See TimePickerDefaults.colors.