<div class='type'>Composable Component</div>



Time pickers help users select and set a specific time.

<a id='references'></a>



<h2 id="timeinput-state-modifier-colors">TimeInput</h2>

<div class='sourceset sourceset-common'>Common</div>


```kotlin
@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`. |