Tab Row
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.
selected Tab Index
The selected tab index of the TabRow.
on Tab Selected
The callback when a tab is selected.
modifier
The modifier to be applied to the TabRow.
colors
The colors of the TabRow.
min Width
The minimum width of the tab in TabRow.
max Width
The maximum width of the tab in TabRow.
height
The height of the TabRow.
corner Radius
The round corner radius of the tab in TabRow.
item Spacing
The spacing between tabs in TabRow.
content Alignment
The content alignment of the tab in TabRow.
list State
The LazyListState to be used for the TabRow.
interaction Source
The MutableInteractionSource to be used for the TabRow.
indication
The Indication to be used for the TabRow.