# TabDefaults

Artifact: [androidx.tv:tv-material](https://developer.android.com/jetpack/androidx/releases/tv) [View Source](https://cs.android.com/search?q=file:androidx/tv/material3/Tab.kt+class:androidx.tv.material3.TabDefaults) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/tv#1.0.0)


```
object TabDefaults
```

<br />

*** ** * ** ***

## Summary

| ### Public functions |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/tv/material3/TabColors` | `@https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable https://developer.android.com/reference/kotlin/androidx/tv/material3/TabDefaults#pillIndicatorTabColors(androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color)( contentColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, inactiveContentColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, selectedContentColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, focusedContentColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, focusedSelectedContentColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, disabledContentColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, disabledInactiveContentColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, disabledSelectedContentColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color )` `https://developer.android.com/reference/kotlin/androidx/tv/material3/Tab.composable#(androidx.tv.material3.TabRowScope).Tab(kotlin.Boolean,kotlin.Function0,androidx.compose.ui.Modifier,kotlin.Function0,kotlin.Boolean,androidx.tv.material3.TabColors,androidx.compose.foundation.interaction.MutableInteractionSource,kotlin.Function1)`'s content colors to in conjunction with pill indicator |
| `https://developer.android.com/reference/kotlin/androidx/tv/material3/TabColors` | `@https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable https://developer.android.com/reference/kotlin/androidx/tv/material3/TabDefaults#underlinedIndicatorTabColors(androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color)( contentColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, inactiveContentColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, selectedContentColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, focusedContentColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, focusedSelectedContentColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, disabledContentColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, disabledInactiveContentColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, disabledSelectedContentColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color )` `https://developer.android.com/reference/kotlin/androidx/tv/material3/Tab.composable#(androidx.tv.material3.TabRowScope).Tab(kotlin.Boolean,kotlin.Function0,androidx.compose.ui.Modifier,kotlin.Function0,kotlin.Boolean,androidx.tv.material3.TabColors,androidx.compose.foundation.interaction.MutableInteractionSource,kotlin.Function1)`'s content colors to in conjunction with underlined indicator |

## Public functions

### pillIndicatorTabColors

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/tv#1.1.0)

```
@Composable
fun pillIndicatorTabColors(
    contentColor: Color = LocalContentColor.current,
    inactiveContentColor: Color = contentColor.copy(alpha = 0.4f),
    selectedContentColor: Color = MaterialTheme.colorScheme.onPrimaryContainer,
    focusedContentColor: Color = MaterialTheme.colorScheme.surfaceVariant,
    focusedSelectedContentColor: Color = focusedContentColor,
    disabledContentColor: Color = contentColor,
    disabledInactiveContentColor: Color = disabledContentColor.copy(alpha = 0.4f),
    disabledSelectedContentColor: Color = selectedContentColor
): TabColors
```

`https://developer.android.com/reference/kotlin/androidx/tv/material3/Tab.composable#(androidx.tv.material3.TabRowScope).Tab(kotlin.Boolean,kotlin.Function0,androidx.compose.ui.Modifier,kotlin.Function0,kotlin.Boolean,androidx.tv.material3.TabColors,androidx.compose.foundation.interaction.MutableInteractionSource,kotlin.Function1)`'s content colors to in conjunction with pill indicator

| Parameters |
|---|---|
| `contentColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color = LocalContentColor.current` | applied when the any of the other tabs is focused |
| `inactiveContentColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color = contentColor.copy(alpha = 0.4f)` | the default color of the tab's content when none of the tabs are focused |
| `selectedContentColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color = MaterialTheme.colorScheme.onPrimaryContainer` | applied when the current tab is selected |
| `focusedContentColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color = MaterialTheme.colorScheme.surfaceVariant` | applied when the current tab is focused |
| `focusedSelectedContentColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color = focusedContentColor` | applied when the current tab is both focused and selected |
| `disabledContentColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color = contentColor` | applied when any of the other tabs is focused and the current tab is disabled |
| `disabledInactiveContentColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color = disabledContentColor.copy(alpha = 0.4f)` | applied when the current tab is disabled and none of the tabs are focused |
| `disabledSelectedContentColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color = selectedContentColor` | applied when the current tab is disabled and selected |

### underlinedIndicatorTabColors

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/tv#1.1.0)

```
@Composable
fun underlinedIndicatorTabColors(
    contentColor: Color = LocalContentColor.current,
    inactiveContentColor: Color = contentColor.copy(alpha = 0.4f),
    selectedContentColor: Color = MaterialTheme.colorScheme.onPrimaryContainer,
    focusedContentColor: Color = MaterialTheme.colorScheme.primary,
    focusedSelectedContentColor: Color = focusedContentColor,
    disabledContentColor: Color = contentColor,
    disabledInactiveContentColor: Color = disabledContentColor.copy(alpha = 0.4f),
    disabledSelectedContentColor: Color = selectedContentColor
): TabColors
```

`https://developer.android.com/reference/kotlin/androidx/tv/material3/Tab.composable#(androidx.tv.material3.TabRowScope).Tab(kotlin.Boolean,kotlin.Function0,androidx.compose.ui.Modifier,kotlin.Function0,kotlin.Boolean,androidx.tv.material3.TabColors,androidx.compose.foundation.interaction.MutableInteractionSource,kotlin.Function1)`'s content colors to in conjunction with underlined indicator

| Parameters |
|---|---|
| `contentColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color = LocalContentColor.current` | applied when the any of the other tabs is focused |
| `inactiveContentColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color = contentColor.copy(alpha = 0.4f)` | the default color of the tab's content when none of the tabs are focused |
| `selectedContentColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color = MaterialTheme.colorScheme.onPrimaryContainer` | applied when the current tab is selected |
| `focusedContentColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color = MaterialTheme.colorScheme.primary` | applied when the current tab is focused |
| `focusedSelectedContentColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color = focusedContentColor` | applied when the current tab is both focused and selected |
| `disabledContentColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color = contentColor` | applied when any of the other tabs is focused and the current tab is disabled |
| `disabledInactiveContentColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color = disabledContentColor.copy(alpha = 0.4f)` | applied when the current tab is disabled and none of the tabs are focused |
| `disabledSelectedContentColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color = selectedContentColor` | applied when the current tab is disabled and selected |