<div class='sourceset sourceset-android'>Android</div>

```kotlin
object TabRowDefaults
```

## Properties

<div class='sourceset sourceset-android'>Android</div>

```kotlin
val ContainerColor = Color.Transparent
```

Color of the background of a tab

## Functions

<h2 id="tabseparator">TabSeparator</h2>

```kotlin
@Composable
    fun TabSeparator()
```

Space between tabs in the tab row

```kotlin
@Composable fun contentColor(): Color
```

Default accent color for the TabRow

<hr class="docs-overload-divider">

<h2 id="pillindicator-currenttabposition-doestabrowhavefocus-modifier-activecolor-inactivecolor">PillIndicator</h2>

```kotlin
@Composable
    fun PillIndicator(
        currentTabPosition: DpRect,
        doesTabRowHaveFocus: Boolean,
        modifier: Modifier = Modifier,
        activeColor: Color = MaterialTheme.colorScheme.onSurface,
        inactiveColor: Color = MaterialTheme.colorScheme.secondaryContainer.copy(alpha = 0.4f),
    )
```

Adds a pill indicator behind the tab

#### Parameters

| | |
| --- | --- |
| currentTabPosition | position of the current selected tab |
| doesTabRowHaveFocus | whether any tab in TabRow is focused |
| modifier | modifier to be applied to the indicator |
| activeColor | color of indicator when [TabRow](/jetpack-compose/androidx.tv/tv-material/components/TabRow) is active |
| inactiveColor | color of indicator when [TabRow](/jetpack-compose/androidx.tv/tv-material/components/TabRow) is inactive |

<hr class="docs-overload-divider">

<h2 id="underlinedindicator-currenttabposition-doestabrowhavefocus-modifier-activecolor-inactivecolor">UnderlinedIndicator</h2>

```kotlin
@Composable
    fun UnderlinedIndicator(
        currentTabPosition: DpRect,
        doesTabRowHaveFocus: Boolean,
        modifier: Modifier = Modifier,
        activeColor: Color = MaterialTheme.colorScheme.primary,
        inactiveColor: Color = MaterialTheme.colorScheme.secondary,
    )
```

Adds an underlined indicator below the tab

#### Parameters

| | |
| --- | --- |
| currentTabPosition | position of the current selected tab |
| doesTabRowHaveFocus | whether any tab in TabRow is focused |
| modifier | modifier to be applied to the indicator |
| activeColor | color of indicator when [TabRow](/jetpack-compose/androidx.tv/tv-material/components/TabRow) is active |
| inactiveColor | color of indicator when [TabRow](/jetpack-compose/androidx.tv/tv-material/components/TabRow) is inactive |