TabRow

fun TabRow(tabs: List<String>, selectedTabIndex: Int, onTabSelected: (Int) -> Unit, modifier: Modifier = Modifier, colors: TabRowColors = TabRowDefaults.tabRowColors(backgroundColor = Color.Transparent), minWidth: Dp = TabRowDefaults.TabRowMinWidth, maxWidth: Dp = TabRowDefaults.TabRowMaxWidth, height: Dp = TabRowDefaults.TabRowHeight, cornerRadius: Dp = TabRowDefaults.TabRowCornerRadius, itemSpacing: Dp = 0.dp, contentAlignment: Alignment = Alignment.Center, listState: LazyListState? = null, interactionSource: MutableInteractionSource? = null, indication: Indication? = null)

A TabRow with COUI style, without the container capsule.

Renders the COUI segment button (see TabRowWithContour) without the container fill: only the sliding capsule indicator with its drop shadow, on a transparent background by default.

Parameters

tabs

The text to be displayed in the TabRow.

selectedTabIndex

The selected tab index of the TabRow.

onTabSelected

The callback when a tab is selected.

modifier

The modifier to be applied to the TabRow.

colors

The colors of the TabRow.

minWidth

The minimum width of the tab in TabRow.

maxWidth

The maximum width of the tab in TabRow.

height

The height of the TabRow.

cornerRadius

The corner radius of the sliding indicator in TabRow.

itemSpacing

The spacing between tabs in TabRow.

contentAlignment

The content alignment of the tab in TabRow.

listState

The LazyListState to be used for the TabRow.

interactionSource

The MutableInteractionSource to be used for the TabRow.

indication

The Indication to be used for the TabRow.