---
title: "TimeInputDefaults"
description: "Default values used by [TimeInput]"
type: "object"
lastmod: "2026-08-27"
---
## API Reference

> Source set: Common

```kotlin
public object TimeInputDefaults
```

Default values used by [TimeInput](/jetpack-compose/androidx.compose.material3/material3/components/TimeInput/api)

## Functions

### colors

> Source set: Common

```kotlin
@Composable
    public fun colors(): TimeInputColors
```

Default colors used by a [TimeInput](/jetpack-compose/androidx.compose.material3/material3/components/TimeInput/api) in different states

### colors

> Source set: Common

```kotlin
@Composable
    public fun colors(
        containerColor: Color = Color.Unspecified,
        periodSelectorBorderColor: Color = Color.Unspecified,
        periodSelectorSelectedContainerColor: Color = Color.Unspecified,
        periodSelectorContainerColor: Color = Color.Unspecified,
        periodSelectorSelectedContentColor: Color = Color.Unspecified,
        periodSelectorContentColor: Color = Color.Unspecified,
        timeTextFieldColors: TextFieldColors? = null,
    ): TimeInputColors
```

Default colors used by a [TimeInput](/jetpack-compose/androidx.compose.material3/material3/components/TimeInput/api) in different states

#### Parameters

| | |
| --- | --- |
| containerColor | the container color of the time input |
| periodSelectorBorderColor | the color used for the border of the AM/PM toggle |
| periodSelectorSelectedContainerColor | the color used for the selected container of the AM/PM toggle |
| periodSelectorContainerColor | the color used for the container of the AM/PM toggle |
| periodSelectorSelectedContentColor | color used for the selected content of the AM/PM toggle |
| periodSelectorContentColor | color used for the content of the AM/PM toggle |
| timeTextFieldColors | the [TextFieldColors](/jetpack-compose/androidx.compose.material3/material3/classes/TextFieldColors) used for the hour and minute text fields |

#### Return

[TimeInputColors](/jetpack-compose/androidx.compose.material3/material3/classes/TimeInputColors) with specified color overrides

### vibrantColors

> Source set: Common

```kotlin
@Composable
    public fun vibrantColors(): TimeInputColors
```

Default colors used by a vibrant [TimeInput](/jetpack-compose/androidx.compose.material3/material3/components/TimeInput/api) in different states

### vibrantColors

> Source set: Common

```kotlin
@Composable
    public fun vibrantColors(
        containerColor: Color = Color.Unspecified,
        periodSelectorBorderColor: Color = Color.Unspecified,
        periodSelectorSelectedContainerColor: Color = Color.Unspecified,
        periodSelectorContainerColor: Color = Color.Unspecified,
        periodSelectorSelectedContentColor: Color = Color.Unspecified,
        periodSelectorContentColor: Color = Color.Unspecified,
        timeTextFieldColors: TextFieldColors? = null,
    ): TimeInputColors
```

Default colors used by a vibrant [TimeInput](/jetpack-compose/androidx.compose.material3/material3/components/TimeInput/api) in different states

#### Parameters

| | |
| --- | --- |
| containerColor | the container color of the time input |
| periodSelectorBorderColor | the color used for the border of the AM/PM toggle |
| periodSelectorSelectedContainerColor | the color used for the selected container of the AM/PM toggle |
| periodSelectorContainerColor | the color used for the container of the AM/PM toggle |
| periodSelectorSelectedContentColor | color used for the selected content of the AM/PM toggle |
| periodSelectorContentColor | color used for the content of the AM/PM toggle |
| timeTextFieldColors | the [TextFieldColors](/jetpack-compose/androidx.compose.material3/material3/classes/TextFieldColors) used for the hour and minute text fields |

#### Return

[TimeInputColors](/jetpack-compose/androidx.compose.material3/material3/classes/TimeInputColors) with specified color overrides

### shapes

> Source set: Common

```kotlin
@Composable public fun shapes(): TimePickerShapes
```

Default shapes used by a [TimeInput](/jetpack-compose/androidx.compose.material3/material3/components/TimeInput/api)

### shapes

> Source set: Common

```kotlin
@Composable
    public fun shapes(
        timeFieldShape: Shape? = null,
        periodSelectorShape: Shape? = null,
    ): TimePickerShapes
```

Default shapes used by a [TimeInput](/jetpack-compose/androidx.compose.material3/material3/components/TimeInput/api)

#### Parameters

| | |
| --- | --- |
| timeFieldShape | the shape used for the time fields. If null, the default shape will be used. |
| periodSelectorShape | the shape used for the AM/PM toggle. If null, the default shape will be used. |

#### Return

[TimePickerShapes](/jetpack-compose/androidx.compose.material3/material3/classes/TimePickerShapes) with specified shape overrides
