TabRow

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

A TabRow with Miuix style.

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 round corner radius of the tab 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.