androidx.compose.material3
TabRowDefaults
Object
No hand-written docs yet.
Contains default implementations and values used for TabRow.
object TabRowDefaults
Properties
ScrollableTabRowMinTabWidthSince 1.9
val ScrollableTabRowMinTabWidth: Dp
The default minimum width for a tab in a PrimaryScrollableTabRow or SecondaryScrollableTabRow.
ScrollableTabRowEdgeStartPadding
val ScrollableTabRowEdgeStartPadding: Dp
The default padding from the starting edge before a tab in a PrimaryScrollableTabRow or SecondaryScrollableTabRow.
primaryContainerColor
@Composable val primaryContainerColor: Color
Default container color of a PrimaryTabRow.
secondaryContainerColor
@Composable val secondaryContainerColor: Color
Default container color of a SecondaryTabRow.
primaryContentColor
@Composable val primaryContentColor: Color
Default content color of a PrimaryTabRow.
secondaryContentColor
@Composable val secondaryContentColor: Color
Default content color of a SecondaryTabRow.
Functions
PrimaryIndicator
@Composable
fun PrimaryIndicator(
modifier: Modifier = Modifier,
width: Dp = 24.dp,
height: Dp = PrimaryNavigationTabTokens.ActiveIndicatorHeight,
color: Color = PrimaryNavigationTabTokens.ActiveIndicatorColor.value,
shape: Shape = PrimaryNavigationTabTokens.ActiveIndicatorShape,
)
Primary indicator, which will be positioned at the bottom of the TabRow, on top of the divider.
SecondaryIndicator
@Composable
fun SecondaryIndicator(
modifier: Modifier = Modifier,
height: Dp = PrimaryNavigationTabTokens.ActiveIndicatorHeight,
color: Color = PrimaryNavigationTabTokens.ActiveIndicatorColor.value,
)
Secondary indicator, which will be positioned at the bottom of the TabRow, on top of the divider.
Library docs
Contains default implementations and values used for TabRow.