Start native apps faster with the Composables CLI ->
Compose Component

TimeScroll

Time pickers help users select and set a specific time.

TimeScroll

Source set: Common
@Composable
fun TimeScroll(
    state: TimePickerState,
    shapes: TimePickerShapes,
    modifier: Modifier = Modifier,
    colors: TimePickerColors = TimePickerDefaults.richColors(),
)

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.
shapes the TimePickerShapes that will be used to resolve the shapes used for this time input in different states.
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.richColors.

Last updated: