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

```kotlin
object TabRowDefaults
```

Contains default implementations and values used for TabRow.

## Properties

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

```kotlin
const val DividerOpacity = 0.12f
```

Default opacity for the color of [Divider](/jetpack-compose/androidx.compose.material/material/components/Divider)

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

```kotlin
val DividerThickness = 1.dp
```

Default thickness for [Divider](/jetpack-compose/androidx.compose.material/material/components/Divider)

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

```kotlin
val IndicatorHeight = 2.dp
```

Default height for `Indicator`

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

```kotlin
val ScrollableTabRowPadding = 52.dp
```

The default padding from the starting edge before a tab in a [ScrollableTabRow](/jetpack-compose/androidx.compose.material/material/components/ScrollableTabRow).

## Functions

<h2 id="divider-modifier-thickness-color">Divider</h2>

```kotlin
@Composable
    fun Divider(
        modifier: Modifier = Modifier,
        thickness: Dp = DividerThickness,
        color: Color = LocalContentColor.current.copy(alpha = DividerOpacity),
    )
```

Default [Divider](/jetpack-compose/androidx.compose.material/material/components/Divider), which will be positioned at the bottom of the [TabRow](/jetpack-compose/androidx.compose.material/material/components/TabRow), underneath the
indicator.

#### Parameters

| | |
| --- | --- |
| modifier | modifier for the divider's layout |
| thickness | thickness of the divider |
| color | color of the divider |

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

<h2 id="indicator-modifier-height-color">Indicator</h2>

```kotlin
@Composable
    fun Indicator(
        modifier: Modifier = Modifier,
        height: Dp = IndicatorHeight,
        color: Color = LocalContentColor.current,
    )
```

Default indicator, which will be positioned at the bottom of the [TabRow](/jetpack-compose/androidx.compose.material/material/components/TabRow), on top of the
divider.

#### Parameters

| | |
| --- | --- |
| modifier | modifier for the indicator's layout |
| height | height of the indicator |
| color | color of the indicator |

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

<h2 id="tabindicatoroffset-currenttabposition">tabIndicatorOffset</h2>

```kotlin
fun Modifier.tabIndicatorOffset(currentTabPosition: TabPosition): Modifier
```

[Modifier](/jetpack-compose/androidx.compose.ui/ui/interfaces/Modifier) that takes up all the available width inside the [TabRow](/jetpack-compose/androidx.compose.material/material/components/TabRow), and then animates the
offset of the indicator it is applied to, depending on the `currentTabPosition`.

#### Parameters

| | |
| --- | --- |
| currentTabPosition | [TabPosition](/jetpack-compose/androidx.compose.material/material/classes/TabPosition) of the currently selected tab. This is used to calculate the offset of the indicator this modifier is applied to, as well as its width. |