🌈 Create new beautiful Compose Gradients with our new wesite ->
Compose Component

TimeInput

Time pickers help users select and set a specific time.

TimeInput social preview

TimeInput

Source set: Common
@Composable
public fun TimeInput(
    state: TimePickerState,
    modifier: Modifier = Modifier,
    colors: TimeInputColors = TimeInputDefaults.colors(),
)

Parameters

state state for this time picker, 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 TimeInputColors that will be used to resolve the colors used for this time input in different states. See TimeInputDefaults.colors.

TimeInput

Source set: Common
@Deprecated(message = "Maintained for binary compatibility", level = DeprecationLevel.HIDDEN)
@Composable
public fun TimeInput(
    state: TimePickerState,
    modifier: Modifier = Modifier,
    colors: TimePickerColors = TimePickerDefaults.colors(),
)

TimeInput

Source set: Common
@Composable
public fun TimeInput(
    state: TimePickerState,
    shapes: TimePickerShapes,
    modifier: Modifier = Modifier,
    colors: TimeInputColors = TimeInputDefaults.vibrantColors(),
)

Parameters

state state for this time picker, 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 TimeInputColors that will be used to resolve the colors used for this time input in different states. See TimeInputDefaults.vibrantColors.

TimeInput

Source set: Common
@Composable
public fun TimeInput(
    state: TimePickerState,
    shapes: TimePickerShapes,
    toggle: @Composable () -> Unit,
    modifier: Modifier = Modifier,
    colors: TimeInputColors = TimeInputDefaults.vibrantColors(),
)

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.
toggle toggle to switch between different picker modes, e.g., switching between TimeInput and TimeScroll.
modifier the Modifier to be applied to this time input
colors colors TimeInputColors that will be used to resolve the colors used for this time input in different states. See TimeInputDefaults.vibrantColors.

TimeInput

Source set: Common
@Deprecated(message = "Maintained for binary compatibility", level = DeprecationLevel.HIDDEN)
@Composable
public fun TimeInput(
    state: TimePickerState,
    shapes: TimePickerShapes,
    modifier: Modifier = Modifier,
    colors: TimePickerColors = TimePickerDefaults.vibrantColors(),
)

Content updated: