Google is committed to advancing racial equity for Black communities. See how.

TabPosition

@Immutable data class TabPosition
kotlin.Any
   ↳ androidx.compose.material.TabPosition

Data class that contains information about a tab's position on screen, used for calculating where to place the indicator that shows which tab is selected.

Summary

Properties
Dp

the left edge's x position from the start of the TabRow

Dp

the right edge's x position from the start of the TabRow

Dp

the width of this tab

Properties

left

val left: Dp

the left edge's x position from the start of the TabRow

val right: Dp

the right edge's x position from the start of the TabRow

width

val width: Dp

the width of this tab